Skip to content

Commit

Permalink
tests: lower sleep timeout from 1s to 100ms and use time.After
Browse files Browse the repository at this point in the history
  • Loading branch information
fho committed Oct 26, 2023
1 parent 11254c2 commit ecfd5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/gracefulstop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func (s) TestGracefulStopBlocksUntilGRPCConnectionsTerminate(t *testing.T) {
select {
case <-gracefulStopReturned:
t.Error("GracefulStop returned before GRPC method call ended")
default:
case <-time.After(defaultTestShortTimeout):
}

unblockGRPCCall <- struct{}{}
Expand Down

0 comments on commit ecfd5d1

Please sign in to comment.