diff --git a/test/index.js b/test/index.js index 362f067e27..6ab893f4c2 100644 --- a/test/index.js +++ b/test/index.js @@ -19,7 +19,10 @@ const instance = axios.create({ timeout: config.timeout, httpsAgent: new https.Agent({ rejectUnauthorized: false - }) + }), + validateStatus: function (status) { + return status >= 200 && status < 404 + } }) async function test() {