Skip to content

Commit

Permalink
chore: modify unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jin-gou committed Jan 4, 2024
1 parent 039247d commit 5f1febd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ws_reverse_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func TestProxy(t *testing.T) {

// proxy server
ps := server.Default(server.WithHostPorts(":7777"))
ps.NoHijackConnPool = true
ps.GET("/proxy", proxy.ServeHTTP)
go ps.Spin()

Expand All @@ -63,6 +64,7 @@ func TestProxy(t *testing.T) {
go func() {
// backend server
bs := server.Default()
bs.NoHijackConnPool = true
bs.GET("/", func(ctx context.Context, c *app.RequestContext) {
// Don't upgrade if original host header isn't preserved
host := string(c.Host())
Expand Down

0 comments on commit 5f1febd

Please sign in to comment.