From fa023dbf842ec5c70418c1d4b02251215df75bb0 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Fri, 3 Nov 2023 15:25:13 +0530 Subject: [PATCH] Fixed proto protocol message test with msgSerial and connection Serial --- ably/proto_protocol_message_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ably/proto_protocol_message_test.go b/ably/proto_protocol_message_test.go index 763a731d..68532f5d 100644 --- a/ably/proto_protocol_message_test.go +++ b/ably/proto_protocol_message_test.go @@ -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) }