Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testCheckResult (0.25 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    	// This allows for that.
    	testCheckResult(t, w, watch.Event{Type: watch.Modified, Object: out})
    	w.Stop()
    
    	// Make sure when we watch from 0 we receive an ADDED event
    	w, err = store.Watch(ctx, key, storage.ListOptions{ResourceVersion: "0", Predicate: storage.Everything})
    	if err != nil {
    		t.Fatalf("Watch failed: %v", err)
    	}
    
    	testCheckResult(t, w, watch.Event{Type: watch.Added, Object: out})
    	w.Stop()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go

    		}
    	case <-time.After(wait.ForeverTestTimeout):
    		t.Errorf("time out after waiting %v on ResultChan", wait.ForeverTestTimeout)
    	}
    }
    
    func testCheckResult(t *testing.T, w watch.Interface, expectEvent watch.Event) {
    	testCheckResultFunc(t, w, func(actualEvent watch.Event) {
    		expectNoDiff(t, "incorrect event", expectEvent, actualEvent)
    	})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 22 07:26:55 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top