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 a510102 commit da6562d
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 @@ -301,7 +301,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 da6562d

Please sign in to comment.