mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Fix race condition in decoder
This commit is contained in:
parent
36eee3ca8a
commit
9027f30aa8
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user