Skip to content

Commit

Permalink
fix proxy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Aug 7, 2023
1 parent 41ae1a5 commit 6ea9410
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions middleware/proxy/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,11 @@ func Test_Proxy_Forward_Global_Client(t *testing.T) {
}))
}()

time.Sleep(1 * time.Second)

resp, err := fiberClient.AcquireClient().
R().
Get("https://" + addr)
Get("http://" + addr)

require.NoError(t, err)
require.Equal(t, fiber.StatusOK, resp.StatusCode())
Expand Down Expand Up @@ -629,9 +631,11 @@ func Test_Proxy_Forward_Local_Client(t *testing.T) {
}))
}()

time.Sleep(1 * time.Second)

resp, err := fiberClient.AcquireClient().
R().
Get("https://" + addr)
Get("http://" + addr)

require.NoError(t, err)
require.Equal(t, fiber.StatusOK, resp.StatusCode())
Expand Down

0 comments on commit 6ea9410

Please sign in to comment.