mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Fix data race in cacher whitebox test
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
parent
ec0eec68b2
commit
3dc7098cae
@ -681,7 +681,7 @@ func testCacherSendBookmarkEvents(t *testing.T, allowWatchBookmarks, expectedBoo
|
||||
go func() {
|
||||
deadline := time.Now().Add(time.Second)
|
||||
for i := 0; time.Now().Before(deadline); i++ {
|
||||
err = cacher.watchCache.Add(&examplev1.Pod{
|
||||
err := cacher.watchCache.Add(&examplev1.Pod{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: fmt.Sprintf("pod-%d", i),
|
||||
Namespace: "ns",
|
||||
|
Loading…
Reference in New Issue
Block a user