Skip to content

Commit

Permalink
worker: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Jan 24, 2024
1 parent c75ef55 commit 6c8fbaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ws-worker/test/channels/attempt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test('loadAttempt should return an execution plan and options', async (t) => {
...attempts['attempt-1'],
options: {
sanitize: 'obfuscate',
timeout: 10,
attemptTimeout: 10,
},
};

Expand Down Expand Up @@ -56,7 +56,7 @@ test('should join an attempt channel with a token', async (t) => {
join: () => ({ status: 'ok' }),
[GET_ATTEMPT]: () => ({
id: 'a',
options: { timeout: 10 },
options: { attemptTimeout: 10 },
}),
}),
});
Expand All @@ -70,7 +70,7 @@ test('should join an attempt channel with a token', async (t) => {

t.truthy(channel);
t.deepEqual(plan, { id: 'a', jobs: [] });
t.deepEqual(options, { timeout: 10 });
t.deepEqual(options, { attemptTimeout: 10 });
});

test('should fail to join an attempt channel with an invalid token', async (t) => {
Expand Down

0 comments on commit 6c8fbaa

Please sign in to comment.