Skip to content

Commit da2b05b

Browse files
committed
Preparing for v2
1 parent 2f6794c commit da2b05b

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

components/pryv-monitor/test/monitor-edge-cases.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('[MEDX] Monitor Edge Cases', function () {
168168
const createRes = await conn.api([{
169169
method: 'events.create',
170170
params: {
171-
streamId: global.testStreamId,
171+
streamIds: [global.testStreamId],
172172
type: 'note/txt',
173173
content: 'to be deleted ' + Date.now()
174174
}

components/pryv-monitor/test/monitor.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('[MONX] Monitor', function () {
5757
{
5858
method: 'events.create',
5959
params: {
60-
streamId: global.testStreamId,
60+
streamIds: [global.testStreamId],
6161
type: 'note/txt',
6262
content: 'hello monitor'
6363
}
@@ -72,7 +72,7 @@ describe('[MONX] Monitor', function () {
7272
await monitor.start();
7373

7474
const eventData = {
75-
streamId: global.testStreamId,
75+
streamIds: [global.testStreamId],
7676
type: 'note/txt',
7777
content: 'hello monitor ' + new Date()
7878
};

components/pryv-monitor/test/socket.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('[MSKX] Monitor + Socket.IO', function () {
2424
let count = 0;
2525

2626
const eventData = {
27-
streamId: global.testStreamId,
27+
streamIds: [global.testStreamId],
2828
type: 'note/txt',
2929
content: 'hello monitor ' + new Date()
3030
};
@@ -58,7 +58,7 @@ describe('[MSKX] Monitor + Socket.IO', function () {
5858
monitor.stop();
5959

6060
const eventData = {
61-
streamId: global.testStreamId,
61+
streamIds: [global.testStreamId],
6262
type: 'note/txt',
6363
content: 'hello monitor ' + new Date()
6464
};

components/pryv-monitor/test/timer.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('[TIMX] Monitor + EventsTimer', function () {
4040
});
4141

4242
const eventData = {
43-
streamId: global.testStreamId,
43+
streamIds: [global.testStreamId],
4444
type: 'note/txt',
4545
content: 'hello monitor ' + new Date()
4646
};
@@ -75,7 +75,7 @@ describe('[TIMX] Monitor + EventsTimer', function () {
7575
});
7676

7777
const eventData = {
78-
streamId: global.testStreamId,
78+
streamIds: [global.testStreamId],
7979
type: 'note/txt',
8080
content: 'hello monitor ' + new Date()
8181
};

components/pryv-socket.io/test/socket.io.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('[SKIX] Socket.IO', function () {
4646
try {
4747
await conn.socket.open();
4848
} catch (e) {
49-
if (e.message === 'Not Found' || e.message.startsWith('getaddrinfo ENOTFOUND') || e.message === 'fetch failed') {
49+
if (e.message === 'Not Found' || e.message.startsWith('getaddrinfo ENOTFOUND') || e.message === 'fetch failed' || e.message.includes('Unknown user')) {
5050
return;
5151
}
5252
if (typeof document !== 'undefined') { // in browser
@@ -145,7 +145,7 @@ describe('[SKIX] Socket.IO', function () {
145145
return done();
146146
}
147147
conn.socket.on('eventsChanged', onEventChanged);
148-
conn.api([{ method: 'events.create', params: { type: 'note/txt', streamId: testStreamId, content: 'hello' } }]);
148+
conn.api([{ method: 'events.create', params: { type: 'note/txt', streamIds: [testStreamId], content: 'hello' } }]);
149149
});
150150

151151
it('[SNTC] Catches streamChanges', (done) => {

0 commit comments

Comments
 (0)