mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
try to fix data race
This commit is contained in:
parent
0b67934123
commit
6a624a2b4f
@ -72,8 +72,9 @@ func TestOperation(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(100 * time.Millisecond)
|
time.Sleep(100 * time.Millisecond)
|
||||||
if waited != waiters {
|
finished := atomic.LoadInt32(&waited)
|
||||||
t.Errorf("Multiple waiters doesn't work, only %v finished", waited)
|
if finished != waiters {
|
||||||
|
t.Errorf("Multiple waiters doesn't work, only %v finished", finished)
|
||||||
}
|
}
|
||||||
|
|
||||||
if op.expired(time.Now().Add(-time.Second)) {
|
if op.expired(time.Now().Add(-time.Second)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user