Skip to content

Commit

Permalink
test(web-api): remove unneeded timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mtjandra committed Oct 16, 2024
1 parent 06fe3d1 commit 5dabe0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/web-api/src/WebClient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/web-api/src/WebClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5dabe0f

Please sign in to comment.