From 45ad6a4d4c5c79f68101c71bb0bad50e6efdc61e Mon Sep 17 00:00:00 2001 From: David Liu Date: Tue, 6 Feb 2024 20:38:40 +0800 Subject: [PATCH] WIP Error: certificate has expired Signed-off-by: David Liu --- .github/workflows/axios.yml | 2 +- axios/test/index.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/axios.yml b/.github/workflows/axios.yml index 527a477..9815e71 100644 --- a/.github/workflows/axios.yml +++ b/.github/workflows/axios.yml @@ -1,6 +1,6 @@ -name: axios on: push: + workflow_dispatch: defaults: run: working-directory: axios diff --git a/axios/test/index.js b/axios/test/index.js index f9c237f..1bd7ffa 100644 --- a/axios/test/index.js +++ b/axios/test/index.js @@ -11,7 +11,7 @@ const logger = consoleLogger('test:axios'); describe('https', () => { const port = 3443; const cert = new URL('cert.pem', import.meta.url); - it.skip('ping', async () => { // TODO: skip due to :Error: certificate has expired + it('ping', async () => { const resp = await axiosPromise({ @@ -58,7 +58,6 @@ describe('http: error filter', () => { try { await axiosPromise({url}, {rejectUnauthorized: false}); } catch (e) { - logger.error(e); assert.strictEqual(e.statusCode, 404); assert.strictEqual(e.statusMessage, 'Not Found'); }