Skip to content

Commit 4aecc6a

Browse files
committed
check for timeout
1 parent f670322 commit 4aecc6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/server_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,8 @@ func TestServer_Serve_TwoListeners(t *testing.T) {
123123
for ctx.Err() == nil && srv.Serving() != 0 {
124124
time.Sleep(time.Millisecond)
125125
}
126+
127+
if ctx.Err() != nil {
128+
t.Error(ctx.Err())
129+
}
126130
}

0 commit comments

Comments
 (0)