Skip to content

Commit

Permalink
Fix jest timeouts for jupyterlab
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed May 12, 2022
1 parent 9bfced3 commit 1d16c82
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/perspective-jupyterlab/test/jupyter/widget.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ const default_body = async (page) => {
await execute_all_cells(page);
const viewer = await page.waitForSelector(
".jp-OutputArea-output perspective-viewer",
{visible: true, timeout: 60000}
{visible: true, timeout: 1200000}
);
await viewer.evaluate(async (viewer) => await viewer.flush());
return viewer;
};

jest.setTimeout(60000);
jest.setTimeout(1200000);

utils.with_jupyterlab(process.env.__JUPYTERLAB_PORT__, () => {
describe.jupyter(
Expand Down Expand Up @@ -53,7 +53,8 @@ utils.with_jupyterlab(process.env.__JUPYTERLAB_PORT__, () => {
});

expect(num_rows).toEqual(5);
}
},
{timeout: 120000}
);

test.jupyterlab(
Expand All @@ -72,7 +73,8 @@ utils.with_jupyterlab(process.env.__JUPYTERLAB_PORT__, () => {
});

expect(settings).toEqual(false);
}
},
{timeout: 120000}
);

test.jupyterlab(
Expand All @@ -99,7 +101,8 @@ utils.with_jupyterlab(process.env.__JUPYTERLAB_PORT__, () => {
});

expect(num_rows).toEqual(5);
}
},
{timeout: 120000}
);

test.jupyterlab(
Expand Down Expand Up @@ -130,7 +133,8 @@ utils.with_jupyterlab(process.env.__JUPYTERLAB_PORT__, () => {
});

expect(num_rows).toEqual(10);
}
},
{timeout: 120000}
);
},
{name: "Simple", root: path.join(__dirname, "..", "..")}
Expand Down

0 comments on commit 1d16c82

Please sign in to comment.