Skip to content

Commit 20337f9

Browse files
committed
Update tests
1 parent ddabebb commit 20337f9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/test/src/test-integration-workflows-with-recorded-logs.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,19 +201,19 @@ export async function runUnfinishedHandlersWithCancellationOrFailureWorkflow(
201201
}
202202

203203
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);
205205
});
206206

207207
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);
209209
});
210210

211211
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);
213213
});
214214

215215
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);
217217
});
218218

219219
class UnfinishedHandlersWithCancellationOrFailureTest {
@@ -223,8 +223,8 @@ class UnfinishedHandlersWithCancellationOrFailureTest {
223223
private readonly workflowTerminationType: 'cancellation' | 'failure'
224224
) {}
225225

226-
async testWarningIsIssued() {
227-
this.t.true(await this.runWorkflowAndGetWarning());
226+
async testWarningIsIssued(expectWarning: boolean) {
227+
this.t.is(await this.runWorkflowAndGetWarning(), expectWarning);
228228
}
229229

230230
async runWorkflowAndGetWarning(): Promise<boolean> {

0 commit comments

Comments
 (0)