mirror of
https://github.com/mochi-mqtt/server.git
synced 2025-10-17 13:40:51 +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()
|
w1.Close()
|
||||||
|
|
||||||
require.Equal(t, []byte{
|
require.Equal(t, []byte{
|
||||||
byte(packets.Publish << 4), 12,
|
byte(packets.Publish<<4 | 1), 12,
|
||||||
0, 5,
|
0, 5,
|
||||||
'a', '/', 'b', '/', 'c',
|
'a', '/', 'b', '/', 'c',
|
||||||
'h', 'e', 'l', 'l', 'o',
|
'h', 'e', 'l', 'l', 'o',
|
||||||
|
Reference in New Issue
Block a user