Allow bookmark events in between delete/modify in Test
This commit is contained in:
		@@ -243,6 +243,10 @@ func testSimpleCRUD(t *testing.T, ns string, noxuDefinition *apiextensionsv1.Cus
 | 
				
			|||||||
							t.Fatal(err)
 | 
												t.Fatal(err)
 | 
				
			||||||
						}
 | 
											}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
											if watchEvent.Type == watch.Bookmark {
 | 
				
			||||||
 | 
												continue
 | 
				
			||||||
 | 
											}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
						if watchEvent.Type != watch.Modified {
 | 
											if watchEvent.Type != watch.Modified {
 | 
				
			||||||
							t.Errorf("expected modified event, got %v", watchEvent.Type)
 | 
												t.Errorf("expected modified event, got %v", watchEvent.Type)
 | 
				
			||||||
							break
 | 
												break
 | 
				
			||||||
@@ -285,6 +289,10 @@ func testSimpleCRUD(t *testing.T, ns string, noxuDefinition *apiextensionsv1.Cus
 | 
				
			|||||||
					t.Fatal(err)
 | 
										t.Fatal(err)
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									if watchEvent.Type == watch.Bookmark {
 | 
				
			||||||
 | 
										continue
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				if watchEvent.Type != watch.Deleted {
 | 
									if watchEvent.Type != watch.Deleted {
 | 
				
			||||||
					t.Errorf("expected delete event, got %v", watchEvent.Type)
 | 
										t.Errorf("expected delete event, got %v", watchEvent.Type)
 | 
				
			||||||
					break
 | 
										break
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user