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

misuse of config.hostStorage in a swingset unit test #1491

Closed
warner opened this issue Aug 16, 2020 · 2 comments
Closed

misuse of config.hostStorage in a swingset unit test #1491

warner opened this issue Aug 16, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request SwingSet package: SwingSet

Comments

@warner
Copy link
Member

warner commented Aug 16, 2020

One of the dynamic vat tests is using a pattern which I think is wrong, but I'm not sure:

async function doTestSetup(mode) {
const config = await loadBasedir(__dirname);
config.hostStorage = initSwingStore().storage;

@FUDCo I think you currently know the most about hostStorage, so I wanted to check my hunch: config.hostStorage is ignored, and storage should be passed throughruntimeOptions (third argument to buildVatController). Is that correct?

Should we just delete this config.hostStorage = line? The test doesn't need to do anything special with storage, it can use ephemeral RAM.

Please reassign back to me if that's the case, and I'll make the PR to remove it.

@warner warner added enhancement New feature or request SwingSet package: SwingSet labels Aug 16, 2020
@FUDCo
Copy link
Contributor

FUDCo commented Aug 16, 2020

Yup, I think your intuitions are correct. I somehow missed this one when I was upgrading everything to the new config model. Simply deleting the line and falling back on the default ephemeral store is fine (since that's effectively what now happens anyway when this is run).

@FUDCo FUDCo assigned warner and unassigned FUDCo Aug 16, 2020
@FUDCo FUDCo assigned FUDCo and unassigned warner Sep 3, 2020
FUDCo added a commit that referenced this issue Sep 3, 2020
@FUDCo
Copy link
Contributor

FUDCo commented Sep 3, 2020

Fixed by #1686

@FUDCo FUDCo closed this as completed Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SwingSet package: SwingSet
Projects
None yet
Development

No branches or pull requests

2 participants