@@ -201,19 +201,19 @@ export async function runUnfinishedHandlersWithCancellationOrFailureWorkflow(
201
201
}
202
202
203
203
test ( 'unfinished update handler with workflow cancellation' , async ( t ) => {
204
- await new UnfinishedHandlersWithCancellationOrFailureTest ( t , 'update' , 'cancellation' ) . testWarningIsIssued ( ) ;
204
+ await new UnfinishedHandlersWithCancellationOrFailureTest ( t , 'update' , 'cancellation' ) . testWarningIsIssued ( false ) ;
205
205
} ) ;
206
206
207
207
test ( 'unfinished signal handler with workflow cancellation' , async ( t ) => {
208
- await new UnfinishedHandlersWithCancellationOrFailureTest ( t , 'signal' , 'cancellation' ) . testWarningIsIssued ( ) ;
208
+ await new UnfinishedHandlersWithCancellationOrFailureTest ( t , 'signal' , 'cancellation' ) . testWarningIsIssued ( false ) ;
209
209
} ) ;
210
210
211
211
test ( 'unfinished update handler with workflow failure' , async ( t ) => {
212
- await new UnfinishedHandlersWithCancellationOrFailureTest ( t , 'update' , 'failure' ) . testWarningIsIssued ( ) ;
212
+ await new UnfinishedHandlersWithCancellationOrFailureTest ( t , 'update' , 'failure' ) . testWarningIsIssued ( true ) ;
213
213
} ) ;
214
214
215
215
test ( 'unfinished signal handler with workflow failure' , async ( t ) => {
216
- await new UnfinishedHandlersWithCancellationOrFailureTest ( t , 'signal' , 'failure' ) . testWarningIsIssued ( ) ;
216
+ await new UnfinishedHandlersWithCancellationOrFailureTest ( t , 'signal' , 'failure' ) . testWarningIsIssued ( true ) ;
217
217
} ) ;
218
218
219
219
class UnfinishedHandlersWithCancellationOrFailureTest {
@@ -223,8 +223,8 @@ class UnfinishedHandlersWithCancellationOrFailureTest {
223
223
private readonly workflowTerminationType : 'cancellation' | 'failure'
224
224
) { }
225
225
226
- async testWarningIsIssued ( ) {
227
- this . t . true ( await this . runWorkflowAndGetWarning ( ) ) ;
226
+ async testWarningIsIssued ( expectWarning : boolean ) {
227
+ this . t . is ( await this . runWorkflowAndGetWarning ( ) , expectWarning ) ;
228
228
}
229
229
230
230
async runWorkflowAndGetWarning ( ) : Promise < boolean > {
0 commit comments