Skip to content

Commit 8632d50

Browse files
committed
Address comments
1 parent 917c6cb commit 8632d50

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/cache_test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { deepStrictEqual, fail, equal, notStrictEqual, strictEqual, throws } from 'node:assert';
1+
import { deepStrictEqual, notStrictEqual, strictEqual, throws } from 'node:assert';
22
import mock from 'ts-mockito';
33

44
import { V1Namespace, V1NamespaceList, V1ObjectMeta, V1Pod, V1PodList, V1ListMeta } from './api.js';
@@ -1477,12 +1477,8 @@ describe('delete items', () => {
14771477
resolve();
14781478
});
14791479
});
1480-
try {
1481-
await lw.start();
1482-
await errCalled;
1483-
equal(gotErr, requestErr);
1484-
} catch (err) {
1485-
fail(`unexpected error: ${err}`);
1486-
}
1480+
await lw.start();
1481+
await errCalled;
1482+
strictEqual(gotErr, requestErr);
14871483
});
14881484
});

0 commit comments

Comments
 (0)