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

Add pauseIf() / pauseUnless() #999

Merged
merged 2 commits into from
Sep 27, 2022
Merged

Add pauseIf() / pauseUnless() #999

merged 2 commits into from
Sep 27, 2022

Conversation

u01jmg3
Copy link
Contributor

@u01jmg3 u01jmg3 commented Sep 26, 2022

Sometimes, in your test suite, it's helpful to conditionally pause without having to jump out of your method chain. For example, I needed pauseIf(App::environment('testing'), 500) so I could slow down our test suite when running remotely in GitHub Actions. However, I didn't need this when running our test suite locally on my machine. I added pauseUnless() for completeness.

There are no tests present for pause() so I haven't added any for pauseIf() / pauseUnless().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants