Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Jul 27, 2023
1 parent 37ada3c commit 853c987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server_and_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestRequestToServer(t *testing.T) {

// we start the server and listen for incoming connections/data in separate goroutine. ListenAndServe is blocking call.
go func() {
err := s.ListenAndServe(ctx, "localhost:5020", mbs)
err := s.ListenAndServe(ctx, "localhost:0", mbs)
if err != nil && !errors.Is(err, server.ErrServerClosed) {
log.Printf("ListenAndServe end: %v", err)
}
Expand Down

0 comments on commit 853c987

Please sign in to comment.