Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit ead0126

Browse files
committed
fix integration test
1 parent ee0ff8c commit ead0126

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/StreamrClient.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,15 +1052,15 @@ describe('StreamrClient', () => {
10521052
})
10531053
}, 2 * TIMEOUT)
10541054

1055-
it('client.subscribe with resend last can get the historical keys for previous encrypted messages', (done) => {
1055+
it('client.subscribe with resend last can get the historical keys for previous encrypted messages', async (done) => {
10561056
client.once('error', done)
10571057
// Publish encrypted messages with different keys
10581058
const groupKey1 = crypto.randomBytes(32)
10591059
const groupKey2 = crypto.randomBytes(32)
1060-
client.publish(stream.id, {
1060+
await client.publish(stream.id, {
10611061
test: 'resent msg 1',
10621062
}, Date.now(), null, groupKey1)
1063-
client.publish(stream.id, {
1063+
await client.publish(stream.id, {
10641064
test: 'resent msg 2',
10651065
}, Date.now(), null, groupKey2)
10661066

0 commit comments

Comments
 (0)