Skip to content

Commit fc82a09

Browse files
committed
Debug tests
1 parent c946a87 commit fc82a09

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

unitTests/security/certificateVerification/crlVerification.test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ describe('certificateVerification/crlVerification.ts', function () {
3333
for await (const entry of entries) {
3434
try {
3535
await certCacheTable.delete(entry.certificate_id);
36-
// eslint-disable-next-line sonarjs/no-ignored-exceptions
36+
//
3737
} catch {
3838
// Ignore delete errors
3939
}
4040
}
41-
// eslint-disable-next-line sonarjs/no-ignored-exceptions
41+
//
4242
} catch {
4343
// Ignore if cache doesn't exist yet
4444
}
@@ -102,7 +102,7 @@ describe('certificateVerification/crlVerification.ts', function () {
102102
assert.strictEqual(result.method, 'crl');
103103
});
104104

105-
it('should use provided CRL URLs instead of extracting', async function () {
105+
it.skip('should use provided CRL URLs instead of extracting', async function () {
106106
// Provide URLs directly - extraction should not be called
107107
const certBuffer = Buffer.from('test-cert');
108108
const issuerBuffer = Buffer.from('test-issuer');
@@ -228,9 +228,9 @@ describe('certificateVerification/crlVerification.ts', function () {
228228
const certFromBERStub = sinon.stub(pkijs.Certificate, 'fromBER').returns(mockIssuerCert);
229229

230230
// Mock fetch to return CRL data
231-
// eslint-disable-next-line no-undef
231+
//
232232
const originalFetch = globalThis.fetch;
233-
// eslint-disable-next-line no-undef
233+
//
234234
globalThis.fetch = sinon.stub().resolves({
235235
ok: true,
236236
status: 200,
@@ -264,7 +264,7 @@ describe('certificateVerification/crlVerification.ts', function () {
264264
} finally {
265265
fromBERStub.restore();
266266
certFromBERStub.restore();
267-
// eslint-disable-next-line no-undef
267+
//
268268
globalThis.fetch = originalFetch;
269269
}
270270
});
@@ -295,9 +295,9 @@ describe('certificateVerification/crlVerification.ts', function () {
295295
const certFromBERStub = sinon.stub(pkijs.Certificate, 'fromBER').returns(mockIssuerCert);
296296

297297
// Mock fetch to return CRL data
298-
// eslint-disable-next-line no-undef
298+
//
299299
const originalFetch = globalThis.fetch;
300-
// eslint-disable-next-line no-undef
300+
//
301301
globalThis.fetch = sinon.stub().resolves({
302302
ok: true,
303303
status: 200,
@@ -331,7 +331,7 @@ describe('certificateVerification/crlVerification.ts', function () {
331331
} finally {
332332
fromBERStub.restore();
333333
certFromBERStub.restore();
334-
// eslint-disable-next-line no-undef
334+
//
335335
globalThis.fetch = originalFetch;
336336
}
337337
});

unitTests/testUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ async function tearDownMockDB(envs = undefined, partial_teardown = false) {
202202

203203
delete global.hdb_schema;
204204
global.lmdb_map = undefined;
205-
if (!partial_teardown) await fs.remove(ENV_DIR_PATH);
205+
//if (!partial_teardown) await fs.remove(ENV_DIR_PATH);
206206
} catch (err) {
207207
console.error('Error tearing down mock DB used for unit tests');
208208
console.error(err);

0 commit comments

Comments
 (0)