Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce wait time in test utils #4427

Merged
merged 4 commits into from
Aug 8, 2023
Merged

Reduce wait time in test utils #4427

merged 4 commits into from
Aug 8, 2023

Conversation

mattseddon
Copy link
Contributor

@mattseddon mattseddon commented Aug 5, 2023

This should (slightly) cut down the amount of time taken to run the integration tests.

@mattseddon mattseddon marked this pull request as ready for review August 5, 2023 19:44
@@ -330,7 +330,7 @@ export const waitForSpyCall = async (
messageSpy: SinonSpy,
originalCallCount: number
): Promise<unknown> => {
await Time.delay(500)
await Time.delay(100)
Copy link
Contributor Author

@mattseddon mattseddon Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[F] Could probably go as far as using process.nextTick or delay(0) here but this is good enough for now.

@mattseddon mattseddon enabled auto-merge (squash) August 8, 2023 18:57
@codeclimate
Copy link

codeclimate bot commented Aug 8, 2023

Code Climate has analyzed commit d7a2cc5 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.3% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit 8bcfd60 into main Aug 8, 2023
@mattseddon mattseddon deleted the reduce-delay-time branch August 8, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants