diff --git a/src/tcp/tcp_test.go b/src/tcp/tcp_test.go index c692f5c..e1986e7 100644 --- a/src/tcp/tcp_test.go +++ b/src/tcp/tcp_test.go @@ -30,6 +30,7 @@ func TestTCP(t *testing.T) { if bytes.Equal(data, []byte{1}) { continue } + break } assert.Nil(t, err) assert.Equal(t, []byte("hello, c2"), data) @@ -40,6 +41,7 @@ func TestTCP(t *testing.T) { if bytes.Equal(data, []byte{1}) { continue } + break } assert.Nil(t, err) assert.Equal(t, []byte("hello, c1"), data)