From ca518d528ef5f5a088e97691754fc51430d43989 Mon Sep 17 00:00:00 2001 From: Mathieu Hofman Date: Tue, 30 Jan 2024 16:15:36 +0000 Subject: [PATCH] chore(deployment): remove upgrade-test leftovers --- .../agoric-upgrade-13/.gitignore | 0 .../agoric-upgrade-13/actions.test.js | 45 ------------------- .../agoric-upgrade-13/post.test.js | 1 - .../agoric-upgrade-13/pre.test.js | 9 ---- 4 files changed, 55 deletions(-) delete mode 100644 packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/.gitignore delete mode 100644 packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/actions.test.js delete mode 100644 packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/post.test.js delete mode 100644 packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/pre.test.js diff --git a/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/.gitignore b/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/.gitignore deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/actions.test.js b/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/actions.test.js deleted file mode 100644 index 3ebc09f7f10c..000000000000 --- a/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/actions.test.js +++ /dev/null @@ -1,45 +0,0 @@ -import test from 'ava'; - -import { agd } from '../cliHelper.js'; -import { ATOM_DENOM, CHAINID, GOV1ADDR } from '../constants.js'; -import { addUser, getISTBalance } from './actions.js'; -import { mintIST, openVault } from '../econHelpers.js'; -import { waitForBlock } from '../commonUpgradeHelpers.js'; - -test.before(async t => { - await mintIST(GOV1ADDR, 12340000000, 10000, 2000); - - await waitForBlock(2); - const userAddress = await addUser('user-auto'); - await agd.tx( - 'bank', - 'send', - 'gov1', - userAddress, - `1000000uist,2100000000${ATOM_DENOM}`, - '--from', - GOV1ADDR, - '--chain-id', - CHAINID, - '--keyring-backend', - 'test', - '--yes', - ); - t.context = { userAddress }; - await waitForBlock(2); -}); - -test('Open Vaults with auto-provisioned wallet', async t => { - const { userAddress } = /** @type {{userAddress: string}} */ (t.context); - t.is(await getISTBalance(userAddress), 1); - - const ATOMGiven = 2000; - const ISTWanted = 400; - await openVault(userAddress, ISTWanted, ATOMGiven); - - await waitForBlock(2); - - const newISTBalance = await getISTBalance(userAddress); - console.log('New IST Balance in u13 account:', newISTBalance); - t.true(newISTBalance >= ISTWanted, 'Got the wanted IST'); -}); diff --git a/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/post.test.js b/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/post.test.js deleted file mode 100644 index 8c8d4b3bbde6..000000000000 --- a/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/post.test.js +++ /dev/null @@ -1 +0,0 @@ -import test from 'ava'; diff --git a/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/pre.test.js b/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/pre.test.js deleted file mode 100644 index 567fb1ec8635..000000000000 --- a/packages/deployment/upgrade-test/upgrade-test-scripts/agoric-upgrade-13/pre.test.js +++ /dev/null @@ -1,9 +0,0 @@ -import test from 'ava'; - -import { waitForBlock } from '../commonUpgradeHelpers.js'; - -test.before(async () => { - console.log('Wait for upgrade to settle'); - - await waitForBlock(5); -});