Skip to content

Commit

Permalink
Fix tests due to new eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Aug 19, 2024
1 parent 4c35013 commit 7ce0759
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ metatests.test('Async: Abortable delay', async (test) => {
try {
const res = await delay(10);
test.strictSame(res, undefined);
} catch (err) {
} catch {
test.error(new Error('Should not be executed'));
}
const ac = new AbortController();
Expand Down Expand Up @@ -66,7 +66,7 @@ metatests.test('Async: timeoutify', async (test) => {
const response = await timeoutify(request, 1000);
test.strictSame(response, undefined);
test.end();
} catch (err) {
} catch {
test.error(new Error('Should not be executed'));
}
});
4 changes: 2 additions & 2 deletions test/semaphore.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ metatests.test('Semaphore real life usage', async (test) => {
const useSemaphore = async () => {
try {
await semaphore.enter();
} catch (e) {
} catch {
return;
}
try {
await delay(1000);
return;
} catch (e) {
} catch {
return;
} finally {
semaphore.leave();
Expand Down

0 comments on commit 7ce0759

Please sign in to comment.