Skip to content

Commit

Permalink
Merge pull request #393 from Agoric/rs-update-tests
Browse files Browse the repository at this point in the history
chore: update wallets used in liquidation tests
  • Loading branch information
rabi-siddique authored Mar 4, 2025
2 parents 621d214 + caca407 commit 285d701
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
6 changes: 4 additions & 2 deletions test/e2e/specs/liquidation-reconstitution.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ import {

describe('Liquidation Reconstitution Testing', () => {
let startTime;
const AGORIC_NET = Cypress.env('AGORIC_NET');
const network = AGORIC_NET !== 'local' ? 'testnet' : 'local';
const AGORIC_NET = Cypress.env('AGORIC_NET').trim();
const network =
{ local: 'local', emerynet: 'emerynet' }[AGORIC_NET] || 'testnet';

const currentConfig = configMap[network];
const QUICK_WAIT =
AGORIC_NET === 'local' ? QUICK_WAIT_LOCAL : QUICK_WAIT_TESTNET;
Expand Down
6 changes: 4 additions & 2 deletions test/e2e/specs/liquidation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ import {

describe('Liquidation Testing', () => {
let startTime;
const AGORIC_NET = Cypress.env('AGORIC_NET');
const network = AGORIC_NET !== 'local' ? 'testnet' : 'local';
const AGORIC_NET = Cypress.env('AGORIC_NET').trim();
const network =
{ local: 'local', emerynet: 'emerynet' }[AGORIC_NET] || 'testnet';

const currentConfig = configMap[network];
const QUICK_WAIT =
AGORIC_NET === 'local' ? QUICK_WAIT_LOCAL : QUICK_WAIT_TESTNET;
Expand Down
22 changes: 22 additions & 0 deletions test/e2e/test.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ export const mnemonics = {
'tackle hen gap lady bike explain erode midnight marriage wide upset culture model select dial trial swim wood step scan intact what card symptom',
gov1: 'such field health riot cost kitten silly tube flash wrap festival portion imitate this make question host bitter puppy wait area glide soldier knee',
gov2: 'physical immune cargo feel crawl style fox require inhale law local glory cheese bring swear royal spy buyer diesel field when task spin alley',
validator:
'soap hub stick bomb dish index wing shield cruel board siren force glory assault rotate busy area topple resource okay clown wedding hint unhappy',
};

export const accountAddresses = {
user1: 'agoric1ydzxwh6f893jvpaslmaz6l8j2ulup9a7x8qvvq',
gov1: 'agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q',
gov2: 'agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277',
validator: 'agoric1estsewt6jqsx77pwcxkn5ah0jqgu8rhgflwfdl',
};

export const webWalletURL = 'https://wallet.agoric.app/';
Expand Down Expand Up @@ -37,6 +40,25 @@ export const webWalletSelectors = {
};

export const configMap = {
emerynet: {
DEFAULT_TIMEOUT: 3 * 60 * 1000,
DEFAULT_TASK_TIMEOUT: 3 * 60 * 1000,
LIQUIDATING_TIMEOUT: 13 * 60 * 1000,
LIQUIDATED_TIMEOUT: 5 * 60 * 1000,
COMMAND_TIMEOUT: 6 * 60 * 1000,
bidderMnemonic: mnemonics.validator,
bidderAddress: accountAddresses.validator,
bidderWalletName: 'bidder',
gov1Mnemonic: mnemonics.gov1,
gov1Address: accountAddresses.gov1,
gov1WalletName: 'gov1',
gov2Mnemonic: mnemonics.gov2,
gov2Address: accountAddresses.gov2,
gov2WalletName: 'gov2',
econGovURL: `https://econ-gov.inter.trade/?agoricNet=${Cypress.env('AGORIC_NET')}`,
auctionURL: `https://${Cypress.env('AGORIC_NET')?.trim()}.api.agoric.net/agoric/vstorage/data/published.auction.book0`,
reserveURL: `https://${Cypress.env('AGORIC_NET')?.trim()}.api.agoric.net/agoric/vstorage/data/published.reserve.metrics`,
},
testnet: {
DEFAULT_TIMEOUT: 3 * 60 * 1000,
DEFAULT_TASK_TIMEOUT: 3 * 60 * 1000,
Expand Down

0 comments on commit 285d701

Please sign in to comment.