Fix race condition in decoder

This commit is contained in:
Gaurav Singh 2020-04-25 20:35:04 -04:00
parent 36eee3ca8a
commit 9027f30aa8

View File

@ -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() {