-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
import test from 'ava'; | ||
import { getIncarnation } from '../../upgrade-test-scripts/lib/vat-status.js'; | ||
import { agops } from '../../upgrade-test-scripts/lib/cliHelper.js'; | ||
|
||
test(`Zoe vat was upgraded`, async t => { | ||
const incarantion = await getIncarnation('zoe'); | ||
t.is(incarantion, 1); | ||
}); | ||
|
||
/** | ||
* 1. make an 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 | ||
console.log('making an offer that stays open'); | ||
agops.inter('bid by-price --give 1IST --price 30 --from gov1'.split(' ')); | ||
|
||
// restart the vat-admin vat | ||
console.log('restarting the vat-admin vat'); | ||
|
||
// make sure the offer is still open | ||
console.log('making sure the offer is still open'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters