Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Commit a03abe1

Browse files
committed
fix a test that's failing because sequence=0 now doesn't cause ErrPktSync
1 parent 711645b commit a03abe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packets_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ func TestReadPacketWrongSequenceID(t *testing.T) {
115115
}
116116

117117
// too low sequence id
118-
conn.data = []byte{0x01, 0x00, 0x00, 0x00, 0xff}
118+
conn.data = []byte{0x01, 0x00, 0x00, 0x01, 0xff}
119119
conn.maxReads = 1
120-
mc.sequence = 1
120+
mc.sequence = 2
121121
_, err := mc.readPacket()
122122
if err != ErrPktSync {
123123
t.Errorf("expected ErrPktSync, got %v", err)

0 commit comments

Comments
 (0)