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

Follow-up fake vstorage blockHeight advancement #10959

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented Feb 7, 2025

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

@mhofman mhofman requested a review from gibson042 February 7, 2025 03:29
@mhofman mhofman requested a review from a team as a code owner February 7, 2025 03:29
Copy link

cloudflare-workers-and-pages bot commented Feb 7, 2025

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

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

View logs

@@ -266,21 +266,21 @@ test('makeFakeStorageKit sequence data', async t => {
'manual-sequence grandchild setValue message',
);
t.deepEqual(getValues(deepPath), ['baz', 'qux']);
Copy link
Member

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (Number(streamCell?.blockHeight) !== currentBlockHeight) {
if (streamCell && Number(streamCell.blockHeight) !== currentBlockHeight) {

Copy link
Member Author

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

@mhofman mhofman added the automerge:rebase Automatically rebase updates, then merge label Feb 7, 2025
@mhofman mhofman force-pushed the mhofman/fake-vstorage-blocks-2 branch from d79749f to fe360e5 Compare February 7, 2025 05:25
@mergify mergify bot merged commit fe66674 into master Feb 7, 2025
83 checks passed
@mergify mergify bot deleted the mhofman/fake-vstorage-blocks-2 branch February 7, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants