You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Technically the flow woke up on its own (wakeAll in prepareAsyncFlowTools) for both the following reasons:
it was defined as an eager waker (default)
it was in a failed state from a bad replay in the previous test.
A different approach may be to split this testGoodReplay test in 2, have the first one redefine the flow using startEager = false so it gets removed from the eager wakers, and only resolve v3 in the next test to verify that resolving the vow actually wakes up the flow. We should also verify then that the flow wasn't awoken before the vow resolution (probably can set a variable right after resolution of v3, and check that the variable is set inside the guest flow)
Given "A different approach may be" and due to limited time and immediate demand, I'm filing this rather than addressing it in #9097 itself. Should still be addressed in a later PR.
The text was updated successfully, but these errors were encountered:
closes: #9126
Best reviewed commit-by-commit
## Description
This PR add a new `prepare-strict-test-env.js` which enforces durable requirements on the baggage and provide helpers to simulate upgrades based on the helper from the `async-flow` and `zone` package tests.
In particular it adds a new `startLife` helper which enforces kind redefinition rules for a `build` step, and rejects previously watched promises (assuming they were all decided by the previous incarnation).
### Security Considerations
None, test infra only
### Scaling Considerations
None
### Documentation Considerations
Some types added and clarified. Internal tooling
### Testing Considerations
Adds tests of the new strict env and `startLife` helper.
Add liveslots based test in `vow` using the new `startLife` helper.
Updated the test environments in the `zone` and `async-flow` package to use the new liveslots env, but does not update the `async-flow` tests to use the stricter `startLife` (will be done in #9933 or #9383)
### Upgrade Considerations
Better upgrade testing without needing a full swingset kernel
At #9097 (comment) @mhofman writes:
Given "A different approach may be" and due to limited time and immediate demand, I'm filing this rather than addressing it in #9097 itself. Should still be addressed in a later PR.
The text was updated successfully, but these errors were encountered: