Skip to content

Commit b57fc76

Browse files
author
Perki
committed
Upgrading deps and changing timeout for CI
1 parent ee53e7b commit b57fc76

File tree

11 files changed

+760
-669
lines changed

11 files changed

+760
-669
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131

3232
- name: Setup Dev Env
3333
run: |
34-
just setup-dev-env
3534
npm install
3635
3736
- name: Run tests on all components

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Monitor', function () {
1010
this.timeout(3000);
1111

1212
before(async function () {
13-
this.timeout(5000);
13+
this.timeout(15000);
1414
await prepareAndCreateBaseStreams();
1515
});
1616

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('Monitor + Socket.IO', function () {
1515
});
1616

1717
describe('socket updates', function () {
18-
this.timeout(5000);
18+
this.timeout(15000);
1919
it('Detect new events added', async function () {
2020
const monitor = new pryv.Monitor(apiEndpoint, { limit: 1 })
2121
.addUpdateMethod(new pryv.Monitor.UpdateMethod.Socket());

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('Socket.IO', function () {
1919
let apiEndpointBogusUsername;
2020

2121
before(async function () {
22-
this.timeout(5000);
22+
this.timeout(15000);
2323
await testData.prepare();
2424
apiEndpoint = testData.apiEndpointWithToken;
2525
apiEndpointBogusToken = pryv.Service.buildAPIEndpoint(testData.serviceInfo, testData.username, 'toto');

components/pryv/test/Browser.AuthController.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Service = require('../src/Service');
1010
const AuthController = require('../src/Auth/AuthController.js');
1111

1212
describe('Browser.LoginButton', function () {
13-
this.timeout(5000);
13+
this.timeout(15000);
1414

1515
let auth;
1616
let removeZombie = false;

components/pryv/test/Browser.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ function genSettings () {
1919
}
2020

2121
describe('Browser', function () {
22-
this.timeout(5000);
22+
this.timeout(15000);
2323

2424
before(async function () {
25-
this.timeout(5000);
25+
this.timeout(15000);
2626
await testData.prepare();
2727
});
2828

components/pryv/test/Connection.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (isNode) { // node
2020

2121
describe('Connection', () => {
2222
before(async function () {
23-
this.timeout(5000);
23+
this.timeout(15000);
2424
await testData.prepare();
2525
conn = new pryv.Connection(testData.apiEndpointWithToken);
2626

@@ -90,7 +90,7 @@ describe('Connection', () => {
9090
});
9191

9292
describe('.api()', function () {
93-
this.timeout(5000);
93+
this.timeout(15000);
9494
it('.api() events.get', async () => {
9595
const res = await conn.api(
9696
[
@@ -317,7 +317,7 @@ describe('Connection', () => {
317317
});
318318

319319
describe('Streamed event get', function () {
320-
this.timeout(5000);
320+
this.timeout(15000);
321321
const now = (new Date()).getTime() / 1000 + 1000;
322322

323323
describe('Node & Browser', function () {

components/pryv/test/Service.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const isNode = (typeof window === 'undefined');
99

1010
describe('Service', function () {
1111
before(async function () {
12-
this.timeout(5000);
12+
this.timeout(15000);
1313
await testData.prepare();
1414
});
1515

@@ -36,7 +36,7 @@ describe('Service', function () {
3636
});
3737

3838
it('login()', async function () {
39-
this.timeout(5000);
39+
this.timeout(15000);
4040
const pryvService = new pryv.Service(testData.serviceInfoUrl);
4141
const conn = await pryvService.login(testData.username, testData.password, 'jslib-test');
4242
expect(conn).to.exist;
@@ -69,13 +69,13 @@ describe('Service', function () {
6969
});
7070

7171
it('login() failed on wrong password', async function () {
72-
this.timeout(5000);
72+
this.timeout(15000);
7373
const pryvService = new pryv.Service(testData.serviceInfoUrl);
7474
await expect(pryvService.login(testData.username, 'bobby', 'jslib-test')).to.be.rejectedWith('The given username/password pair is invalid.');
7575
});
7676

7777
it('login() failed on wrong username', async function () {
78-
this.timeout(5000);
78+
this.timeout(15000);
7979
const pryvService = new pryv.Service(testData.serviceInfoUrl);
8080
// check if username is in path or domain
8181
try {

components/pryv/test/ServiceAssets.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('ServiceAssets', function () {
88
let removeZombie = false;
99

1010
before(async function () {
11-
this.timeout(5000);
11+
this.timeout(15000);
1212
await testData.prepare();
1313
});
1414

components/pryv/test/utils.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
describe('utils', function () {
99
before(async function () {
10-
this.timeout(5000);
10+
this.timeout(15000);
1111
await testData.prepare();
1212
});
1313

0 commit comments

Comments
 (0)