Skip to content

Commit

Permalink
Upgrading deps and changing timeout for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Perki committed Apr 19, 2024
1 parent ee53e7b commit b57fc76
Show file tree
Hide file tree
Showing 11 changed files with 760 additions and 669 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:

- name: Setup Dev Env
run: |
just setup-dev-env
npm install
- name: Run tests on all components
Expand Down
2 changes: 1 addition & 1 deletion components/pryv-monitor/test/monitor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Monitor', function () {
this.timeout(3000);

before(async function () {
this.timeout(5000);
this.timeout(15000);
await prepareAndCreateBaseStreams();
});

Expand Down
2 changes: 1 addition & 1 deletion components/pryv-monitor/test/socket.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Monitor + Socket.IO', function () {
});

describe('socket updates', function () {
this.timeout(5000);
this.timeout(15000);
it('Detect new events added', async function () {
const monitor = new pryv.Monitor(apiEndpoint, { limit: 1 })
.addUpdateMethod(new pryv.Monitor.UpdateMethod.Socket());
Expand Down
2 changes: 1 addition & 1 deletion components/pryv-socket.io/test/socket.io.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('Socket.IO', function () {
let apiEndpointBogusUsername;

before(async function () {
this.timeout(5000);
this.timeout(15000);
await testData.prepare();
apiEndpoint = testData.apiEndpointWithToken;
apiEndpointBogusToken = pryv.Service.buildAPIEndpoint(testData.serviceInfo, testData.username, 'toto');
Expand Down
2 changes: 1 addition & 1 deletion components/pryv/test/Browser.AuthController.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Service = require('../src/Service');
const AuthController = require('../src/Auth/AuthController.js');

describe('Browser.LoginButton', function () {
this.timeout(5000);
this.timeout(15000);

let auth;
let removeZombie = false;
Expand Down
4 changes: 2 additions & 2 deletions components/pryv/test/Browser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ function genSettings () {
}

describe('Browser', function () {
this.timeout(5000);
this.timeout(15000);

before(async function () {
this.timeout(5000);
this.timeout(15000);
await testData.prepare();
});

Expand Down
6 changes: 3 additions & 3 deletions components/pryv/test/Connection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (isNode) { // node

describe('Connection', () => {
before(async function () {
this.timeout(5000);
this.timeout(15000);
await testData.prepare();
conn = new pryv.Connection(testData.apiEndpointWithToken);

Expand Down Expand Up @@ -90,7 +90,7 @@ describe('Connection', () => {
});

describe('.api()', function () {
this.timeout(5000);
this.timeout(15000);
it('.api() events.get', async () => {
const res = await conn.api(
[
Expand Down Expand Up @@ -317,7 +317,7 @@ describe('Connection', () => {
});

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

describe('Node & Browser', function () {
Expand Down
8 changes: 4 additions & 4 deletions components/pryv/test/Service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const isNode = (typeof window === 'undefined');

describe('Service', function () {
before(async function () {
this.timeout(5000);
this.timeout(15000);
await testData.prepare();
});

Expand All @@ -36,7 +36,7 @@ describe('Service', function () {
});

it('login()', async function () {
this.timeout(5000);
this.timeout(15000);
const pryvService = new pryv.Service(testData.serviceInfoUrl);
const conn = await pryvService.login(testData.username, testData.password, 'jslib-test');
expect(conn).to.exist;
Expand Down Expand Up @@ -69,13 +69,13 @@ describe('Service', function () {
});

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

it('login() failed on wrong username', async function () {
this.timeout(5000);
this.timeout(15000);
const pryvService = new pryv.Service(testData.serviceInfoUrl);
// check if username is in path or domain
try {
Expand Down
2 changes: 1 addition & 1 deletion components/pryv/test/ServiceAssets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('ServiceAssets', function () {
let removeZombie = false;

before(async function () {
this.timeout(5000);
this.timeout(15000);
await testData.prepare();
});

Expand Down
2 changes: 1 addition & 1 deletion components/pryv/test/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

describe('utils', function () {
before(async function () {
this.timeout(5000);
this.timeout(15000);
await testData.prepare();
});

Expand Down
Loading

0 comments on commit b57fc76

Please sign in to comment.