Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberj0g committed Mar 15, 2023
1 parent 47b66e5 commit 9f1f404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ func TestNewWHOrchestratorPoolCache(t *testing.T) {

// assert that list is not refreshed if lastRequest is less than 1 min ago and hash is not the same
wg.Add(whpool.Size())
lastReq = time.Now()
lastReq = time.Now().Add(-10 * time.Millisecond)
whpool.mu.Lock()
whpool.lastRequest = lastReq
whpool.mu.Unlock()
Expand Down

0 comments on commit 9f1f404

Please sign in to comment.