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

Refactor client spec to remove sleep statements #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raucao
Copy link

@raucao raucao commented Sep 25, 2024

Instead of using random sleep values, add a wait_for helper method, which efficiently waits until async operations have changed the expected variables before running the assertions.

There was one spec, which would occasionally fail with the arbitrary sleep value, and which works reliably now. And because the sleep value for the wait_for loop is much lower, the specs are also considerably faster now.

closes #5

Instead of using random sleep values, add a `wait_for` helper method,
which efficiently waits until async operations have changed the expected
variables before running the assertions.

closes wilsonsilva#5
Copy link

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nostr ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 2:11pm

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.

remove sleep statements from test suite
1 participant