Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testCheckNoMoreResults (0.15 sec)

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

    func testCheckResultsInStrictOrder(t *testing.T, w watch.Interface, expectedEvents []watch.Event) {
    	for _, expectedEvent := range expectedEvents {
    		testCheckResult(t, w, expectedEvent)
    	}
    }
    
    func testCheckNoMoreResults(t *testing.T, w watch.Interface) {
    	select {
    	case e := <-w.ResultChan():
    		t.Errorf("Unexpected: %#v event received, expected no events", e)
    	// We consciously make the timeout short here to speed up tests.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 22 07:26:55 UTC 2024
    - 10.3K bytes
    - Viewed (1)
  2. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    				require.NoError(t, err, "failed to add a pod: %v")
    				createdPods = append(createdPods, out)
    			}
    			testCheckResultsInStrictOrder(t, w, scenario.expectedEventsAfterEstablishingWatch(createdPods))
    			testCheckNoMoreResults(t, w)
    		})
    	}
    }
    
    // RunWatchSemanticInitialEventsExtended checks if the bookmark event
    // marking the end of the list stream contains the global RV.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top