Skip to content

Commit 520a3b4

Browse files
fix: reduce timeout test flake (#567)
1 parent 111f791 commit 520a3b4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/tests/integration-tests/timeout.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ loop();
6868
});
6969
});
7070
describe("Python Test Runner", () => {
71+
beforeAll(async () => {
72+
// It's helpful to initialize the test runner ahead of time since it's
73+
// quite a slow process. Otherwise we have to remember to give the first
74+
// test a longer timeout.
75+
await page.evaluate(async () => {
76+
await window.FCCTestRunner.createTestRunner({
77+
type: "python",
78+
code: {
79+
contents: "",
80+
},
81+
source: "",
82+
});
83+
});
84+
});
85+
7186
it("should return errors if the test does not terminate", async () => {
7287
const source = `
7388
def loop():

0 commit comments

Comments
 (0)