Skip to content

Commit c382963

Browse files
author
Vlad Velici
committed
Use identified connection in annotation tests
1 parent 257c4e6 commit c382963

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/browser/modular.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@ function registerAblyModularTests(Helper) {
907907
FetchRequest,
908908
Annotations,
909909
},
910+
clientId: Helper.randomString(),
910911
}),
911912
);
912913

@@ -954,6 +955,7 @@ function registerAblyModularTests(Helper) {
954955
FetchRequest,
955956
Annotations,
956957
},
958+
clientId: Helper.randomString(),
957959
}),
958960
);
959961
const txRest = new BaseRest(

test/realtime/annotations.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ define(['shared_helper', 'chai'], function (Helper, chai) {
1414
done(err);
1515
return;
1616
}
17-
rest = helper.AblyRest();
1817
done();
1918
});
2019
});
21-
20+
2221
beforeEach(async () => {
23-
realtime = helper.AblyRealtime();
22+
rest = helper.AblyRest({defaultTokenParams: { clientId: 'test_client_1' }});
23+
realtime = helper.AblyRealtime({ clientId: 'test_client_1' });
2424
});
2525

2626
afterEach(async () => {

0 commit comments

Comments
 (0)