From d72f8d00d3a24dfa4a5a33a4bf2ed3e5b5773b81 Mon Sep 17 00:00:00 2001 From: Arthur Fiorette Date: Tue, 21 May 2024 13:03:39 -0300 Subject: [PATCH] refactor: better tests --- test/mocks/axios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mocks/axios.ts b/test/mocks/axios.ts index 9e45b83..acd0fe5 100644 --- a/test/mocks/axios.ts +++ b/test/mocks/axios.ts @@ -16,7 +16,7 @@ export function mockAxios( // Axios interceptors are a stack, so apply this after the cache interceptor axios.defaults.adapter = async (config) => { // Simply wait for 1ms to simulate a network request - await setTimeout(1); + await setTimeout(50); const should304: unknown = config.headers?.[Header.IfNoneMatch] || config.headers?.[Header.IfModifiedSince];