- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for expectEmptyChannel (0.32 sec)
-
pkg/kubelet/config/http_test.go
ch := make(chan interface{}, 1) c := sourceURL{"http://localhost:49575/_not_found_", http.Header{}, "other", ch, nil, 0, http.DefaultClient} if err := c.extractFromURL(); err == nil { t.Errorf("Expected error") } expectEmptyChannel(t, ch) } func TestExtractInvalidPods(t *testing.T) { var testCases = []struct { desc string pod *v1.Pod }{ { desc: "No version",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 14 09:38:23 UTC 2022 - 11.2K bytes - Viewed (0) -
pkg/kubelet/config/config_test.go
kubetypes "k8s.io/kubernetes/pkg/kubelet/types" "k8s.io/kubernetes/pkg/securitycontext" "k8s.io/kubernetes/test/utils/ktesting" ) const ( TestSource = "test" ) func expectEmptyChannel(t *testing.T, ch <-chan interface{}) { select { case update := <-ch: t.Errorf("Expected no update in channel, Got %v", update) default: } } type sortedPods []*v1.Pod
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 17.1K bytes - Viewed (0)