From f74b86b7ea24f1edcbb6fa3ab5b68ce20809f957 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Sat, 25 Apr 2020 20:35:04 -0400 Subject: [PATCH] Fix race condition in decoder Kubernetes-commit: 9027f30aa865f108c827060ef59ac62c9d07002b --- rest/watch/decoder_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/watch/decoder_test.go b/rest/watch/decoder_test.go index 2e02cf75..0bda7748 100644 --- a/rest/watch/decoder_test.go +++ b/rest/watch/decoder_test.go @@ -48,7 +48,7 @@ func TestDecoder(t *testing.T) { out, in := io.Pipe() decoder := restclientwatch.NewDecoder(streaming.NewDecoder(out, getDecoder()), getDecoder()) - + eventType := eventType expect := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo"}} encoder := json.NewEncoder(in) go func() {