Skip to content

Commit

Permalink
patch: add drain unit test delay
Browse files Browse the repository at this point in the history
- this test wasn't well made, it leads to a race-like condition where a slow running machine will fail some draining tests
  • Loading branch information
denopink committed Oct 21, 2024
1 parent d3fe7c1 commit bd31c28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions device/drain/drainer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ func testDrainFilter(t *testing.T, deviceTypeOne deviceInfo, deviceTypeTwo devic

stopCalled = false
stop = func() {
time.Sleep(time.Second)
stopCalled = true
}

Expand Down

0 comments on commit bd31c28

Please sign in to comment.