diff --git a/packages/web-api/src/WebClient.spec.ts b/packages/web-api/src/WebClient.spec.ts index cfa84b729..a65c4e8d9 100644 --- a/packages/web-api/src/WebClient.spec.ts +++ b/packages/web-api/src/WebClient.spec.ts @@ -1032,7 +1032,6 @@ describe('WebClient', () => { test: 'static-body-value', }); - await new Promise((resolve) => setTimeout(resolve, 100)); config.data = expectedBody; config.headers.test = 'static-header-value'; diff --git a/packages/web-api/src/WebClient.ts b/packages/web-api/src/WebClient.ts index 25a2e3f69..8389a6361 100644 --- a/packages/web-api/src/WebClient.ts +++ b/packages/web-api/src/WebClient.ts @@ -302,7 +302,7 @@ export class WebClient extends Methods { // request interceptors have reversed execution order // see: https://github.com/axios/axios/blob/v1.x/test/specs/interceptors.spec.js#L88 if (requestInterceptor) { - this.axios.interceptors.request.use(requestInterceptor, null, { synchronous: true }); + this.axios.interceptors.request.use(requestInterceptor, null); } this.axios.interceptors.request.use(this.serializeApiCallData.bind(this), null);