Skip to content

Commit 8ef9c22

Browse files
committed
add a comment for a sleep in pod_watcher_test
Signed-off-by: Hiroki Hanada <hiroki-hanada@cybozu.co.jp>
1 parent 936686b commit 8ef9c22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

v2/controllers/pod_watcher_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ var _ = Describe("Pod watcher", Ordered, func() {
122122
panic(err)
123123
}
124124
}()
125+
126+
// Must sleep so that tests do not run before the controller manager is ready.
127+
// Although, a shorter duration was previously set (100ms),
128+
// the duration was increased because the tests that perform write operation early became flaky (e.g. `should check Pod deletion`).
125129
time.Sleep(1000 * time.Millisecond)
126130
})
127131

0 commit comments

Comments
 (0)