- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testCheckResult (0.25 sec)
-
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) -
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)