Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: zhangchao <[email protected]>
  • Loading branch information
Taction committed Aug 7, 2023
1 parent 872df48 commit d2dd25d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions middleware/http/wasm/internal/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ func Test_EndToEnd(t *testing.T) {
defer ts.Close()

meta := metadata.Base{Properties: map[string]string{"url": ts.URL + "/guest.wasm"}}
if len(tc.property) > 0 {
for k, v := range tc.property {
meta.Properties[k] = v
}
}
handlerFn, err := wasm.NewMiddleware(l).GetHandler(context.Background(), middleware.Metadata{Base: meta})
require.NoError(t, err)
handler := handlerFn(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {}))
Expand Down

0 comments on commit d2dd25d

Please sign in to comment.