Skip to content

Commit

Permalink
Add sleep to test to give server time to start socket
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jan 12, 2024
1 parent fbca2b9 commit 634f920
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions httpx/websocket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func newSocketConnection(t *testing.T, url string) *websocket.Conn {
}
c, _, err := d.Dial(url, nil)
assert.NoError(t, err)

time.Sleep(100 * time.Millisecond)

return c
}

Expand Down

0 comments on commit 634f920

Please sign in to comment.