@@ -190,7 +190,9 @@ async function driveWorkflow(
190190
191191 for ( ; ; ) {
192192 if ( completion . failed ) {
193- throw new Error ( `Workflow ${ workflowType } failed unexpectedly: ${ completion . failed . failure ?. message ?? 'unknown error' } ` ) ;
193+ throw new Error (
194+ `Workflow ${ workflowType } failed unexpectedly: ${ completion . failed . failure ?. message ?? 'unknown error' } `
195+ ) ;
194196 }
195197
196198 const startedTimers = ( completion . successful ?. commands ?? [ ] ) . flatMap ( ( command ) =>
@@ -251,7 +253,10 @@ test.serial('workflowRandom exposes the main workflow random sequence', async (t
251253
252254test . serial ( 'plugin named streams do not consume the workflow random stream' , async ( t ) => {
253255 const baseline = extractNumbers ( await driveWorkflow ( t . context , 'randomStreamMainBaselineWithSleep' ) , 'workflow' ) ;
254- const actual = extractNumbers ( await driveWorkflow ( t . context , 'randomStreamPluginNamedStreamDoesNotConsumeMain' ) , 'workflow' ) ;
256+ const actual = extractNumbers (
257+ await driveWorkflow ( t . context , 'randomStreamPluginNamedStreamDoesNotConsumeMain' ) ,
258+ 'workflow'
259+ ) ;
255260 t . deepEqual ( actual , baseline ) ;
256261} ) ;
257262
@@ -268,7 +273,10 @@ test.serial('plugin named streams are isolated from one another', async (t) => {
268273} ) ;
269274
270275test . serial ( 'plugin named streams preserve state across activations' , async ( t ) => {
271- const baseline = extractNumbers ( await driveWorkflow ( t . context , 'randomStreamPluginActivationBaseline' ) , 'plugin-activation' ) ;
276+ const baseline = extractNumbers (
277+ await driveWorkflow ( t . context , 'randomStreamPluginActivationBaseline' ) ,
278+ 'plugin-activation'
279+ ) ;
272280 const actual = extractNumbers (
273281 await driveWorkflow ( t . context , 'randomStreamPluginActivationWithWorkflowInterference' ) ,
274282 'plugin-activation'
@@ -278,9 +286,15 @@ test.serial('plugin named streams preserve state across activations', async (t)
278286
279287test . serial ( 'plugin named streams do not leak between workflows when the VM context is reused' , async ( t ) => {
280288 await withReusableWorkflowCreator ( t . context , async ( driveContext ) => {
281- const baseline = extractNumbers ( await driveWorkflow ( driveContext , 'randomStreamPluginActivationBaseline' ) , 'plugin-activation' ) ;
289+ const baseline = extractNumbers (
290+ await driveWorkflow ( driveContext , 'randomStreamPluginActivationBaseline' ) ,
291+ 'plugin-activation'
292+ ) ;
282293 await driveWorkflow ( driveContext , 'randomStreamPluginActivationWithWorkflowInterference' ) ;
283- const actual = extractNumbers ( await driveWorkflow ( driveContext , 'randomStreamPluginActivationBaseline' ) , 'plugin-activation' ) ;
294+ const actual = extractNumbers (
295+ await driveWorkflow ( driveContext , 'randomStreamPluginActivationBaseline' ) ,
296+ 'plugin-activation'
297+ ) ;
284298 t . deepEqual ( actual , baseline ) ;
285299 } ) ;
286300} ) ;
@@ -301,7 +315,10 @@ test.serial('plugin cached named streams do not leak between workflows when the
301315} ) ;
302316
303317test . serial ( 'plugin-scoped randomness around internals next does not perturb workflow Math.random' , async ( t ) => {
304- const workflowBaseline = extractNumbers ( await driveWorkflow ( t . context , 'randomStreamMainBaselineWithSleep' ) , 'workflow' ) ;
318+ const workflowBaseline = extractNumbers (
319+ await driveWorkflow ( t . context , 'randomStreamMainBaselineWithSleep' ) ,
320+ 'workflow'
321+ ) ;
305322 const pluginBaseline = extractNumbers (
306323 await driveWorkflow ( t . context , 'randomStreamPluginInternalsScopedBaseline' ) ,
307324 'plugin-internals-scoped'
@@ -321,7 +338,10 @@ test.serial('plugin-scoped randomness does not leak between workflows when the V
321338} ) ;
322339
323340test . serial ( 'plugin-scoped randomness survives await and restores before next runs' , async ( t ) => {
324- const workflowBaseline = extractNumbers ( await driveWorkflow ( t . context , 'randomStreamMainBaselineWithSleep' ) , 'workflow' ) ;
341+ const workflowBaseline = extractNumbers (
342+ await driveWorkflow ( t . context , 'randomStreamMainBaselineWithSleep' ) ,
343+ 'workflow'
344+ ) ;
325345 const pluginBaseline = extractNumbers (
326346 await driveWorkflow ( t . context , 'randomStreamPluginScopedMathAcrossAwaitBaseline' ) ,
327347 'plugin-scoped'
@@ -346,7 +366,10 @@ test.serial('workflowRandom keeps referring to the main workflow stream inside a
346366} ) ;
347367
348368test . serial ( 'plugin-scoped uuid4 survives await and restores before next runs' , async ( t ) => {
349- const workflowBaseline = extractStrings ( await driveWorkflow ( t . context , 'randomStreamUuidBaselineWithSleep' ) , 'workflow-uuid' ) ;
369+ const workflowBaseline = extractStrings (
370+ await driveWorkflow ( t . context , 'randomStreamUuidBaselineWithSleep' ) ,
371+ 'workflow-uuid'
372+ ) ;
350373 const pluginBaseline = extractStrings (
351374 await driveWorkflow ( t . context , 'randomStreamPluginScopedUuidAcrossAwaitBaseline' ) ,
352375 'plugin-scoped-uuid'
0 commit comments