From 4b3e7553b3dfbbe4f5852605dd02e165c8850b5f Mon Sep 17 00:00:00 2001 From: Thomas Hardy Date: Wed, 29 Jan 2025 20:55:30 -0800 Subject: [PATCH 1/2] removed working comments --- sleep-for-days/src/test/workflows.test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/sleep-for-days/src/test/workflows.test.ts b/sleep-for-days/src/test/workflows.test.ts index 4a5586c5..fb805a34 100644 --- a/sleep-for-days/src/test/workflows.test.ts +++ b/sleep-for-days/src/test/workflows.test.ts @@ -20,7 +20,6 @@ describe('sleep-for-days workflow', function () { it('runs continuously until signal is received', async () => { const client = testEnv.client; - // let activityExecutions = 0; const mockActivities: typeof activitiesType = { sendEmail: jest.fn(activities.sendEmail), @@ -29,7 +28,6 @@ describe('sleep-for-days workflow', function () { const worker = await Worker.create({ connection: testEnv.nativeConnection, workflowsPath: require.resolve('../workflows'), - // activities: mockActivities, activities: mockActivities, taskQueue, }); From 913c638615fb92c7976da79deda15f141f5a308f Mon Sep 17 00:00:00 2001 From: Thomas Hardy Date: Thu, 30 Jan 2025 10:54:30 -0800 Subject: [PATCH 2/2] update README description --- sleep-for-days/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleep-for-days/README.md b/sleep-for-days/README.md index 5a10f6e8..ffec192d 100644 --- a/sleep-for-days/README.md +++ b/sleep-for-days/README.md @@ -1,6 +1,6 @@ # Sleep for days -This sample demonstrates how to use Temporal to run a workflow that periodically sleeps for a number of days. +This sample demonstrates how to create a Temporal workflow that runs forever, sending an email every 30 days. ### Testing