Skip to content

Commit

Permalink
Update itests/kit/rpc.go
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Evangelatov <[email protected]>
  • Loading branch information
dirkmc and nonsense authored Apr 7, 2022
1 parent 5f0489a commit c34ade9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions itests/kit/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ func waitUpTo(fn func(), waitTime time.Duration, errMsg string) {
close(ch)
}()

timer := time.NewTimer(waitTime)
defer timer.Stop()
select {
case <-ch:
case <-timer.C:
case <-time.After(waitTime):
fmt.Println(errMsg)
return
}
Expand Down

0 comments on commit c34ade9

Please sign in to comment.