File tree Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,14 @@ module.exports = function abstractStoreTest (build) {
71
71
72
72
it ( 'should replace a packet when doing put with the same messageId' , function ( done ) {
73
73
var packet1 = {
74
+ cmd : 'publish' , // added
74
75
topic : 'hello' ,
75
76
payload : 'world' ,
76
77
qos : 2 ,
77
78
messageId : 42
78
79
}
79
80
var packet2 = {
81
+ cmd : 'pubrel' , // added
80
82
qos : 2 ,
81
83
messageId : 42
82
84
}
@@ -130,30 +132,4 @@ module.exports = function abstractStoreTest (build) {
130
132
} )
131
133
} )
132
134
} )
133
-
134
- it ( 'should replace a packet when doing put with the same messageId' , function ( done ) {
135
- var packet1 = {
136
- cmd : 'publish' , // added
137
- topic : 'hello' ,
138
- payload : 'world' ,
139
- qos : 2 ,
140
- messageId : 42
141
- }
142
- var packet2 = {
143
- cmd : 'pubrel' , // added
144
- qos : 2 ,
145
- messageId : 42
146
- }
147
-
148
- store . put ( packet1 , function ( ) {
149
- store . put ( packet2 , function ( ) {
150
- store
151
- . createStream ( )
152
- . on ( 'data' , function ( data ) {
153
- data . should . eql ( packet2 )
154
- done ( )
155
- } )
156
- } )
157
- } )
158
- } )
159
135
}
You can’t perform that action at this time.
0 commit comments