File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ test("can spawn a module thread", async t => {
46
46
47
47
test ( "thread job errors are handled" , async t => {
48
48
const fail = await spawn < ( ) => Promise < never > > ( new Worker ( "./workers/faulty-function" ) )
49
- await t . throwsAsync ( fail ( ) , "I am supposed to fail." )
49
+ await t . throwsAsync ( fail ( ) , null , "I am supposed to fail." )
50
50
await Thread . terminate ( fail )
51
51
} )
52
52
@@ -64,7 +64,7 @@ test("thread transfer errors are handled", async t => {
64
64
} )
65
65
66
66
test ( "catches top-level thread errors" , async t => {
67
- await t . throwsAsync ( spawn ( new Worker ( "./workers/top-level-throw" ) ) , "Top-level worker error" )
67
+ await t . throwsAsync ( spawn ( new Worker ( "./workers/top-level-throw" ) ) , null , "Top-level worker error" )
68
68
} )
69
69
70
70
test . todo ( "can subscribe to thread events" )
You can’t perform that action at this time.
0 commit comments