@@ -135,9 +135,9 @@ describe("Waku Message Ephemeral field", () => {
135
135
136
136
log ( "Sending messages using light push" ) ;
137
137
await Promise . all ( [
138
- waku1 . lightPush . push ( asymEncoder , asymMsg ) ,
139
- waku1 . lightPush . push ( symEncoder , symMsg ) ,
140
- waku1 . lightPush . push ( clearEncoder , clearMsg ) ,
138
+ waku1 . lightPush . send ( asymEncoder , asymMsg ) ,
139
+ waku1 . lightPush . send ( symEncoder , symMsg ) ,
140
+ waku1 . lightPush . send ( clearEncoder , clearMsg ) ,
141
141
] ) ;
142
142
143
143
await waitForRemotePeer ( waku2 , [ Protocols . Store ] ) ;
@@ -181,10 +181,10 @@ describe("Waku Message Ephemeral field", () => {
181
181
await delay ( 200 ) ;
182
182
const normalTxt = "Normal message" ;
183
183
const ephemeralTxt = "Ephemeral Message" ;
184
- await waku . lightPush . push ( TestEncoder , {
184
+ await waku . lightPush . send ( TestEncoder , {
185
185
payload : utf8ToBytes ( normalTxt ) ,
186
186
} ) ;
187
- await waku . lightPush . push ( ephemeralEncoder , {
187
+ await waku . lightPush . send ( ephemeralEncoder , {
188
188
payload : utf8ToBytes ( ephemeralTxt ) ,
189
189
} ) ;
190
190
while ( messages . length < 2 ) {
@@ -230,10 +230,10 @@ describe("Waku Message Ephemeral field", () => {
230
230
await delay ( 200 ) ;
231
231
const normalTxt = "Normal message" ;
232
232
const ephemeralTxt = "Ephemeral Message" ;
233
- await waku . lightPush . push ( encoder , {
233
+ await waku . lightPush . send ( encoder , {
234
234
payload : utf8ToBytes ( normalTxt ) ,
235
235
} ) ;
236
- await waku . lightPush . push ( ephemeralEncoder , {
236
+ await waku . lightPush . send ( ephemeralEncoder , {
237
237
payload : utf8ToBytes ( ephemeralTxt ) ,
238
238
} ) ;
239
239
while ( messages . length < 2 ) {
@@ -280,10 +280,10 @@ describe("Waku Message Ephemeral field", () => {
280
280
await delay ( 200 ) ;
281
281
const normalTxt = "Normal message" ;
282
282
const ephemeralTxt = "Ephemeral Message" ;
283
- await waku . lightPush . push ( encoder , {
283
+ await waku . lightPush . send ( encoder , {
284
284
payload : utf8ToBytes ( normalTxt ) ,
285
285
} ) ;
286
- await waku . lightPush . push ( ephemeralEncoder , {
286
+ await waku . lightPush . send ( ephemeralEncoder , {
287
287
payload : utf8ToBytes ( ephemeralTxt ) ,
288
288
} ) ;
289
289
while ( messages . length < 2 ) {
0 commit comments