Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Nov 18, 2024
1 parent e5091db commit afd3369
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/03-proxy_wasm/sdks/002-go_sdk/005-dispatch_call_on_tick.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Missing IP for "web_service" host requested by the filter.
location /t {
return 200;
}
--- wait: 1
--- ignore_response_body
--- error_log eval
qr/\[error\] .*? dispatch failed: tcp socket - resolver error: Host not found/
Expand All @@ -49,6 +50,7 @@ Connection refused on 127.0.0.1:81 requested by filter.
location /t {
return 200;
}
--- wait: 1
--- ignore_response_body
--- error_log eval
qr/\[error\] .*? dispatch failed: tcp socket - Connection refused/
Expand Down
11 changes: 11 additions & 0 deletions util/sdks/go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ EOF
proxywasm.LogCriticalf("dispatch httpcall failed: %v", err)
}
}
EOF
patch --forward --ignore-whitespace examples/dispatch_call_on_tick/main.go <<'EOF'
@@ -21,7 +21,7 @@ import (
"github.com/tetratelabs/proxy-wasm-go-sdk/proxywasm/types"
)
-const tickMilliseconds uint32 = 100
+const tickMilliseconds uint32 = 1000
func main() {
proxywasm.SetVMContext(&vmContext{})
EOF
set -e

Expand Down

0 comments on commit afd3369

Please sign in to comment.