Skip to content

Commit

Permalink
test(a3p): move around orch testing
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Sep 6, 2024
1 parent fc9151c commit 4c3eda0
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions a3p-integration/debug-current.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh

# Convience script to debug the current proposal being worked on.
# Convenience script to debug the current proposal being worked on.

scripts/build-submission.sh proposals/b:enable-orchestration testing/start-valueVow.js start-valueVow
scripts/build-submission.sh proposals/b:enable-orchestration testing/restart-valueVow.js restart-valueVow
scripts/build-submission.sh proposals/f:test-orchestration testing/start-valueVow.js start-valueVow
scripts/build-submission.sh proposals/f:test-orchestration testing/restart-valueVow.js restart-valueVow

yarn test -m orch --debug
3 changes: 3 additions & 0 deletions a3p-integration/proposals/f:test-orchestration/eval.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
echo "Nothing to eval."
exit 0
16 changes: 8 additions & 8 deletions a3p-integration/proposals/f:test-orchestration/initial.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ import test from 'ava';
import { agd, getVatDetails } from '@agoric/synthetic-chain';

const vats = {
network: { incarnation: 0 },
ibc: { incarnation: 0 },
localchain: { incarnation: 0 },
network: { incarnation: 1 },
ibc: { incarnation: 1 },
localchain: { incarnation: 1 },
orchestration: { incarnation: 0 },
transfer: { incarnation: 0 },
transfer: { incarnation: 1 },
walletFactory: { incarnation: 4 },
zoe: { incarnation: 2 },
};

test(`vat details`, async t => {
await null;
for (const [vatName, expected] of Object.entries(vats)) {
const actual = await getVatDetails(vatName);
t.like(actual, expected, `${vatName} details mismatch`);
const actual = {};
for await (const vatName of Object.keys(vats)) {
actual[vatName] = await getVatDetails(vatName);
}
t.like(actual, vats, `vat details are alike`);
});

const queryData = path =>
Expand Down

0 comments on commit 4c3eda0

Please sign in to comment.