-
Notifications
You must be signed in to change notification settings - Fork 43
bug(tests): investigate need for delays during node setup #2264
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
Comments
Adding await for a log line from |
Attack plan:
Main methods we foresee being created are:
|
Assigning to @danisharora099 as we discussed at PM |
Moved back to TODO to prioritize RLN/presentation this week. |
5 tasks
In |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
Currently in
packages/tests/src/utils/nodes.ts
, we're using arbitrary delays (await delay(2000)
) to ensure proper node setup and connection. These delays were added as a temporary fix to make tests pass, but they are not ideal as:Instead of using arbitrary delays, we should investigate implementing proper wait mechanisms based on specific log lines or node states.
Expected Behavior
The node setup and connection process should:
Steps to Reproduce
Current problematic code locations:
In
packages/tests/src/utils/nodes.ts
:Run tests with
npm test
in the packages/tests directoryTests pass but take longer than necessary due to fixed delays
Environment Details
Investigation Points
After waku node creation:
waitForLog
with specific startup completion indicators?Before waiting for peer logs:
waitForLog
insufficient without the delay?Potential solutions to investigate:
waitForLog
to support multiple log lines in sequenceThe text was updated successfully, but these errors were encountered: