Skip to content

Commit

Permalink
Fixed proto protocol message test with msgSerial and connection Serial
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Nov 3, 2023
1 parent e6db4a8 commit fa023db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ably/proto_protocol_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestProtocolMessageEncodeZeroSerials(t *testing.T) {
encoded, err := ablyutil.MarshalMsgpack(msg)
assert.NoError(t, err)
// expect a 3-element map with both the serial fields set to zero
expected := []byte("\x83\xB0id\xA4test\xA9msgSerial\x00")
expected := []byte("\x82\xa2id\xa4test\xa9msgSerial\x00")
assert.True(t, bytes.Equal(encoded, expected),
"unexpected msgpack encoding\nexpected: %x\nactual: %x", expected, encoded)
}
Expand Down

0 comments on commit fa023db

Please sign in to comment.