Skip to content

Commit

Permalink
Up timeouts on tests we seem to be getting timeouts on in the windows…
Browse files Browse the repository at this point in the history
… CI.
  • Loading branch information
jasongrout committed Dec 20, 2019
1 parent 967180f commit f18e0fd
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/test-console/src/foreign.spec.ts
Expand Up @@ -104,7 +104,7 @@ describe('@jupyterlab/console', () => {

before(async function() {
// tslint:disable-next-line:no-invalid-this
this.timeout(60000);
this.timeout(120000);

const path = UUID.uuid4();
[sessionContext, foreign] = await Promise.all([
Expand Down
8 changes: 4 additions & 4 deletions tests/test-notebook/src/actions.spec.ts
Expand Up @@ -566,7 +566,7 @@ describe('@jupyterlab/notebook', () => {
expect(result).to.equal(false);
expect(child.rendered).to.equal(true);
await ipySessionContext.session.kernel.restart();
}).timeout(60000); // Allow for slower CI
}).timeout(120000); // Allow for slower CI
});

describe('#runAndAdvance()', () => {
Expand Down Expand Up @@ -683,7 +683,7 @@ describe('@jupyterlab/notebook', () => {
expect(cell.rendered).to.equal(true);
expect(widget.activeCellIndex).to.equal(2);
await ipySessionContext.session.kernel.restart();
}).timeout(60000); // Allow for slower CI
}).timeout(120000); // Allow for slower CI
});

describe('#runAndInsert()', () => {
Expand Down Expand Up @@ -782,7 +782,7 @@ describe('@jupyterlab/notebook', () => {
expect(cell.rendered).to.equal(true);
expect(widget.activeCellIndex).to.equal(2);
await ipySessionContext.session.kernel.restart();
}).timeout(60000); // Allow for slower CI
}).timeout(120000); // Allow for slower CI
});

describe('#runAll()', () => {
Expand Down Expand Up @@ -851,7 +851,7 @@ describe('@jupyterlab/notebook', () => {
expect(result).to.equal(false);
expect(cell.rendered).to.equal(true);
await ipySessionContext.session.kernel.restart();
}).timeout(60000); // Allow for slower CI
}).timeout(120000); // Allow for slower CI
});

describe('#selectAbove()', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/test-notebook/src/default-toolbar.spec.ts
Expand Up @@ -231,7 +231,7 @@ describe('@jupyterlab/notebook', () => {

beforeEach(async function() {
// tslint:disable-next-line:no-invalid-this
this.timeout(60000);
this.timeout(120000);
context = await initNotebookContext({ startKernel: true });
panel = NBTestUtils.createNotebookPanel(context);
context.model.fromJSON(NBTestUtils.DEFAULT_CONTENT);
Expand Down
2 changes: 1 addition & 1 deletion tests/test-outputarea/src/widget.spec.ts
Expand Up @@ -52,7 +52,7 @@ describe('outputarea/widget', () => {
let model: OutputAreaModel;

beforeAll(async () => {
jest.setTimeout(60000);
jest.setTimeout(120000);
});

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion tests/test-services/src/kernel/ikernel.spec.ts
Expand Up @@ -28,7 +28,7 @@ describe('Kernel.IKernel', () => {
let kernelManager = new KernelManager();

beforeAll(async () => {
jest.setTimeout(60000);
jest.setTimeout(120000);
specs = await KernelSpecAPI.getSpecs();
});

Expand Down
1 change: 1 addition & 0 deletions tests/test-services/src/kernel/manager.spec.ts
Expand Up @@ -16,6 +16,7 @@ describe('kernel/manager', () => {
let kernel: Kernel.IModel;

beforeAll(async () => {
jest.setTimeout(120000);
kernel = await KernelAPI.startNew();
});

Expand Down
2 changes: 1 addition & 1 deletion tests/test-services/src/session/isession.spec.ts
Expand Up @@ -44,7 +44,7 @@ describe('session', () => {
let defaultSession: Session.ISessionConnection;

beforeAll(async () => {
jest.setTimeout(60000);
jest.setTimeout(120000);
defaultSession = await startNew();
});

Expand Down
4 changes: 4 additions & 0 deletions tests/test-services/src/session/manager.spec.ts
Expand Up @@ -36,6 +36,10 @@ describe('session/manager', () => {
let manager: SessionManager;
let session: Session.ISessionConnection;

beforeAll(() => {
jest.setTimeout(120000);
});

beforeEach(async () => {
manager = new SessionManager({ kernelManager, standby: 'never' });
await manager.ready;
Expand Down

0 comments on commit f18e0fd

Please sign in to comment.