Skip to content

Commit

Permalink
test: check gov's bid in upgrade-10 is live in wf1
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Dec 6, 2023
1 parent d9dc0cd commit 9f94387
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions proposals/49:smart-wallet-nft/test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ testMinChildren() {
testMinChildren published.boardAux 3

# TODO trade game asset

# Check that gov1's bid from upgrade-10 use is still live
ADDR=$(agd keys show --address gov1 --keyring-backend=test)
agd query vstorage data published.wallet.$ADDR.current --output=json | jq -r ".value|fromjson.values[0]|fromjson.body" | tr "#" " " | jq .liveOffers >liveOffers.json
echo Live offers:
jq <liveOffers.json
grep "bid-1701709689406" liveOffers.json
# bid-1701709689406 from upgrade-10 and a closeVault that hasn't completed
test_val $(jq '.|length' <liveOffers.json) 2 "gov1 live offers"
5 changes: 3 additions & 2 deletions proposals/b:zoe1/post.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ test(`Zoe vat was upgraded`, async t => {
});

/**
* 1. make an offer that stays open
* 1. make a new offer that stays open
* 2. restart the vat-admin vat
* 3. make sure the offer is still open
*/
test('offer stays open after vat-admin restart', async t => {
// make an offer that stays open
// XXX consider reusing bid-1701709689406 from upgrade-10
// make an offer that stays open.
console.log('making an offer that stays open');

const openOut = await execAgops(
Expand Down

0 comments on commit 9f94387

Please sign in to comment.