-
Notifications
You must be signed in to change notification settings - Fork 206
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
5547 end event loop #5606
5547 end event loop #5606
Conversation
const periods = 5; | ||
await manualTimer.tickN(periods); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
periods
had been used for t.is(interestAccrued, periods * 2n)
but not anymore and I'm not confident the math works out that cleanly for arbitrary N.
if you feel like it,
const periods = 5; | |
await manualTimer.tickN(periods); | |
await manualTimer.tickN(5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
packages/zoe/tools/manualTimer.js
Outdated
* that all promises that can do resolve. | ||
* Note that this doesn't mean all outstanding promises. | ||
*/ | ||
export const eventLoopIteration = async () => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea
2427a39
to
a0aa9e2
Compare
some minor drive-by cleanups of the files that were touched.
b62e61c
to
c664d16
Compare
closes: #5547
Description
add eventLoopIteration() in manualtimer's tickN()
Also moved testLoopIteration() from run-protocol to live with the manualTimer in Zoe/test
Security Considerations
None. Test only.
Documentation Considerations
None
Testing Considerations