-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use accounts in e2e cleanup * health checks * try this * try this * why ? * try this * try this * try action * Revert "try action" This reverts commit e54ddd7.
- Loading branch information
Showing
3 changed files
with
53 additions
and
11 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
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
if (!process.env.E2E_TEST_ACCOUNTS) { | ||
throw new Error( | ||
'E2E_TEST_ACCOUNTS environment variable must be defined and contain array of strings with account numbers' | ||
); | ||
} | ||
|
||
const accounts = JSON.parse(process.env.E2E_TEST_ACCOUNTS); | ||
|
||
const selectedAccount = accounts[Math.floor(Math.random() * accounts.length)]; | ||
|
||
console.log(selectedAccount); |