Fix incorrect test

The previous publish inline test incorrectly approved retain packets without retain=true fixedheader values.
This commit is contained in:
mochi
2022-03-16 18:16:48 +00:00
parent 1f86168d9d
commit 9f44712b80

View File

@@ -1153,7 +1153,7 @@ func TestServerPublishInlineRetain(t *testing.T) {
w1.Close()
require.Equal(t, []byte{
byte(packets.Publish << 4), 12,
byte(packets.Publish<<4 | 1), 12,
0, 5,
'a', '/', 'b', '/', 'c',
'h', 'e', 'l', 'l', 'o',