mirror of
https://github.com/xtaci/smux.git
synced 2024-04-21 10:51:48 +00:00
Merge pull request #96 from testwill/bytes
chore: use bytes.Equal instead
This commit is contained in:
+2
-2
@@ -208,7 +208,7 @@ func TestWriteTo(t *testing.T) {
|
||||
t.Fatal("WriteTo nw mismatch", nw)
|
||||
}
|
||||
|
||||
if bytes.Compare(sndbuf, rcvbuf.Bytes()) != 0 {
|
||||
if !bytes.Equal(sndbuf, rcvbuf.Bytes()) {
|
||||
t.Fatal("mismatched echo bytes")
|
||||
}
|
||||
}
|
||||
@@ -282,7 +282,7 @@ func TestWriteToV2(t *testing.T) {
|
||||
t.Fatal("WriteTo nw mismatch", nw)
|
||||
}
|
||||
|
||||
if bytes.Compare(sndbuf, rcvbuf.Bytes()) != 0 {
|
||||
if !bytes.Equal(sndbuf, rcvbuf.Bytes()) {
|
||||
t.Fatal("mismatched echo bytes")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user