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

test(a3p): move localchain test to upgrade-next #9467

Merged
merged 1 commit into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable @jessie.js/safe-await-separator */
import test from 'ava';

import { agd, waitForBlock } from '@agoric/synthetic-chain';
import { agd, evalBundles, waitForBlock } from '@agoric/synthetic-chain';

const SUBMISSION_DIR = 'localchaintest-submission';

const readPublished = async path => {
const { value } = await agd.query(
Expand All @@ -18,7 +19,11 @@ const readPublished = async path => {
return obj.values[0];
};

// The testing assertions are in the submission that runs in the core-eval.
// The test here runs that and confirms the eval made it through all the assertions.
test(`localchain passes tests`, async t => {
await evalBundles(SUBMISSION_DIR);

const nodePath = 'test.localchain';
const nodeValue = JSON.stringify({ success: true });

Expand Down
3 changes: 2 additions & 1 deletion a3p-integration/proposals/a:upgrade-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"coreProposals": []
},
"sdk-generate": [
"vats/probe-zcf-bundle.js probe-submission"
"vats/probe-zcf-bundle.js probe-submission",
"vats/test-localchain.js localchaintest-submission"
],
"type": "Software Upgrade Proposal"
},
Expand Down
1 change: 0 additions & 1 deletion a3p-integration/proposals/b:localchain/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion a3p-integration/proposals/b:localchain/.yarnrc.yml

This file was deleted.

6 changes: 0 additions & 6 deletions a3p-integration/proposals/b:localchain/README.md

This file was deleted.

23 changes: 0 additions & 23 deletions a3p-integration/proposals/b:localchain/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions a3p-integration/proposals/b:localchain/test.sh

This file was deleted.

Loading
Loading