diff --git a/test/js/third_party/piscina/piscina.test.ts b/test/js/third_party/piscina/piscina.test.ts index c51d8704d7..3174113b1d 100644 --- a/test/js/third_party/piscina/piscina.test.ts +++ b/test/js/third_party/piscina/piscina.test.ts @@ -56,7 +56,7 @@ test("Piscina error handling", async () => { }); try { - await expect(piscina.run({ shouldThrow: true })).rejects.toThrow(); + expect(piscina.run({ shouldThrow: true })).rejects.toThrow(); } finally { await piscina.destroy(); }