Merge pull request #124474 from serathius/allow-bookmarks

Allow bookmark events in between delete/modify in testSimpleCRUD
This commit is contained in:
Kubernetes Prow Robot 2024-04-23 07:04:41 -07:00 committed by GitHub
commit 68879a4c46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,6 +243,10 @@ func testSimpleCRUD(t *testing.T, ns string, noxuDefinition *apiextensionsv1.Cus
t.Fatal(err)
}
if watchEvent.Type == watch.Bookmark {
continue
}
if watchEvent.Type != watch.Modified {
t.Errorf("expected modified event, got %v", watchEvent.Type)
break
@ -285,6 +289,10 @@ func testSimpleCRUD(t *testing.T, ns string, noxuDefinition *apiextensionsv1.Cus
t.Fatal(err)
}
if watchEvent.Type == watch.Bookmark {
continue
}
if watchEvent.Type != watch.Deleted {
t.Errorf("expected delete event, got %v", watchEvent.Type)
break