mirror of
https://github.com/mochi-mqtt/server.git
synced 2025-10-16 13:10:40 +08:00
Fix incorrect test
The previous publish inline test incorrectly approved retain packets without retain=true fixedheader values.
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user