Skip to content

Commit 9027f30

Browse files
committed
Fix race condition in decoder
1 parent 36eee3c commit 9027f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/client-go/rest/watch/decoder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestDecoder(t *testing.T) {
4848
out, in := io.Pipe()
4949

5050
decoder := restclientwatch.NewDecoder(streaming.NewDecoder(out, getDecoder()), getDecoder())
51-
51+
eventType := eventType
5252
expect := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo"}}
5353
encoder := json.NewEncoder(in)
5454
go func() {

0 commit comments

Comments
 (0)