mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #20046 from lavalamp/flake-watch-test
Remove TestWatchEtcdError
This commit is contained in:
commit
ad6ebc677d
@ -217,24 +217,6 @@ func TestWatchInterpretation_ResponseBadData(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* re-Disabling due to flakes seen upstream #18914
|
|
||||||
func TestWatchEtcdError(t *testing.T) {
|
|
||||||
codec := testapi.Default.Codec()
|
|
||||||
server := etcdtesting.NewEtcdTestClientServer(t)
|
|
||||||
h := newEtcdHelper(server.Client, codec, etcdtest.PathPrefix())
|
|
||||||
watching, err := h.Watch(context.TODO(), "/some/key", "4", storage.Everything)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("Unexpected error: %v", err)
|
|
||||||
}
|
|
||||||
server.Terminate(t)
|
|
||||||
|
|
||||||
got, ok := <-watching.ResultChan()
|
|
||||||
if ok && got.Type != watch.Error {
|
|
||||||
t.Fatalf("Unexpected non-error")
|
|
||||||
}
|
|
||||||
watching.Stop()
|
|
||||||
}*/
|
|
||||||
|
|
||||||
func TestWatch(t *testing.T) {
|
func TestWatch(t *testing.T) {
|
||||||
codec := testapi.Default.Codec()
|
codec := testapi.Default.Codec()
|
||||||
server := etcdtesting.NewEtcdTestClientServer(t)
|
server := etcdtesting.NewEtcdTestClientServer(t)
|
||||||
|
Loading…
Reference in New Issue
Block a user