-
Notifications
You must be signed in to change notification settings - Fork 223
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
Follow-up fake vstorage blockHeight advancement #10959
Conversation
Deploying agoric-sdk with
|
Latest commit: |
fe360e5
|
Status: | ✅ Deploy successful! |
Preview URL: | https://dd3573cd.agoric-sdk.pages.dev |
Branch Preview URL: | https://mhofman-fake-vstorage-blocks-sv6l.agoric-sdk.pages.dev |
@@ -266,21 +266,21 @@ test('makeFakeStorageKit sequence data', async t => { | |||
'manual-sequence grandchild setValue message', | |||
); | |||
t.deepEqual(getValues(deepPath), ['baz', 'qux']); |
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.
Note the test failure here.
@@ -184,14 +186,17 @@ export const makeFakeStorageKit = (rootPath, rootOptions) => { | |||
} catch (_err) { | |||
streamCell = undefined; | |||
} | |||
// StreamCells reset at block boundaries. | |||
if (Number(streamCell?.blockHeight) !== currentBlockHeight) { |
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.
if (Number(streamCell?.blockHeight) !== currentBlockHeight) { | |
if (streamCell && Number(streamCell.blockHeight) !== currentBlockHeight) { |
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.
Oops, good thing the test I had updated caught that :p
d79749f
to
fe360e5
Compare
refs: #10933
Description
Forgot some test updates in the previous PR
Also it was on automerge so I couldn't include @gibson042 's review suggestion
Security Considerations
None
Scaling Considerations
None
Documentation Considerations
Internal test hooks
Testing Considerations
Updated unit tests of fake storage
Upgrade Considerations
None