Skip to content

Commit

Permalink
fix flaky wasm download test (envoyproxy#3759)
Browse files Browse the repository at this point in the history
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
  • Loading branch information
zhaohuabing authored Jul 5, 2024
1 parent df5c265 commit b1e07ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/wasm/httpfetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func TestWasmHTTPInsecureServer(t *testing.T) {
defer ts.Close()
fetcher := NewHTTPFetcher(DefaultHTTPRequestTimeout, DefaultHTTPRequestMaxRetries, logging.DefaultLogger(egv1a1.LogLevelInfo))
fetcher.initialBackoff = time.Microsecond
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
b, err := fetcher.Fetch(ctx, ts.URL, c.insecure)
if c.wantNumRequest != gotNumRequest {
Expand Down

0 comments on commit b1e07ea

Please sign in to comment.