- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testCheckResultFunc (0.23 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go
} } func testCheckResult(t *testing.T, w watch.Interface, expectEvent watch.Event) { testCheckResultFunc(t, w, func(actualEvent watch.Event) { expectNoDiff(t, "incorrect event", expectEvent, actualEvent) }) } func testCheckResultFunc(t *testing.T, w watch.Interface, check func(actualEvent watch.Event)) { select { case res := <-w.ResultChan(): obj := res.Object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 22 07:26:55 UTC 2024 - 10.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go
// We temporary allow both but we should unify here. internalError := metav1.Status{ Status: metav1.StatusFailure, Code: http.StatusInternalServerError, Reason: metav1.StatusReasonInternalError, } testCheckResultFunc(t, tooOldWatcher, func(actualEvent watch.Event) { expectNoDiff(t, "incorrect event type", watch.Error, actualEvent.Type)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 63.8K bytes - Viewed (0)