Skip to content

Commit

Permalink
osutil/epoll: clarify helper name
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronis committed Sep 8, 2023
1 parent 69f1a5f commit 17e2322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osutil/epoll/epoll_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (*epollSuite) TestEpollWaitEintrHandling(c *C) {

var mu sync.Mutex
eintr := true
doReturnEintr := func() bool {
shouldReturnEintr := func() bool {
mu.Lock()
defer mu.Unlock()
return eintr
Expand All @@ -218,7 +218,7 @@ func (*epollSuite) TestEpollWaitEintrHandling(c *C) {
eintr = false
}
restore := epoll.MockUnixEpollWait(func(epfd int, events []unix.EpollEvent, msec int) (n int, err error) {
if doReturnEintr() {
if shouldReturnEintr() {
time.Sleep(time.Millisecond * 10) // rate limit a bit
return 0, unix.EINTR
}
Expand Down

0 comments on commit 17e2322

Please sign in to comment.