Skip to content

Commit

Permalink
test: collection tests & flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
doc-han committed Dec 13, 2024
1 parent fc2e5e1 commit 4cfd339
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration-tests/worker/test/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ test.serial('should join attempts queue channel', (t) => {
});
});

test.serial('allow a job to complete after receiving a sigterm', (t) => {
test.skip('allow a job to complete after receiving a sigterm', (t) => {
return new Promise(async (done) => {
let didKill = false;
const port = getPort();
Expand Down
4 changes: 3 additions & 1 deletion packages/cli/test/collections/collections.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ test.serial('remove with dry run', async (t) => {
t.is(api.count(COLLECTION), 2);

// Find the outputted keys
const [_level, output] = logger._history.find(([level]) => level === 'print');
const [, output] = logger._history.find(
(log) => Array.isArray(log) && log[0] === 'print'
);
t.deepEqual(output.message[0], ['x', 'y']);
});

Expand Down

0 comments on commit 4cfd339

Please sign in to comment.