Skip to content

Commit

Permalink
fix: another fix for the recovery daily test (#3978)
Browse files Browse the repository at this point in the history
Description
---
The daily recovery test was failing to do the webhook curl command due to an unescaped apostrophe in the message.

Also updated the seed words being used to a new one as I cannot yet figure out why the old seed words wont recover but feel its better to monitor new words for now that actually work.

How Has This Been Tested?
---
manually
  • Loading branch information
philipr-za authored Mar 31, 2022
1 parent 7e36cb7 commit 73365a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion applications/daily_tests/automatic_recovery_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main() {
description: "Seed words to use during recovery",
type: "string",
default:
"cactus pool fuel skull chair casino season disorder flat crash wrist whisper decorate narrow oxygen remember minor among happy cricket embark blue ship sick",
"parade jelly sample worth bind release forest snack job mobile divide ranch fee raccoon begin awful source thank check leaf vibrant stove material field",
})
.option("log", {
alias: "l",
Expand Down
12 changes: 6 additions & 6 deletions applications/daily_tests/cron_jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function notify(message) {
}
}

async function runWalletRecoveryTest(instances) {
async function runWalletRecoveryTest(instances, path, seedWords) {
notify("🚀 Wallet recovery check has begun 🚀");

const baseDir = __dirname + "/temp/wallet-recovery";
const baseDir = __dirname + path;
// Remove the last run data
try {
await fs.rmdir(baseDir, {
Expand All @@ -55,15 +55,14 @@ async function runWalletRecoveryTest(instances) {
scannedRate,
recoveredAmount,
} = await walletRecoveryTest({
seedWords:
"cactus pool fuel skull chair casino season disorder flat crash wrist whisper decorate narrow oxygen remember minor among happy cricket embark blue ship sick",
seedWords: seedWords,
log: LOG_FILE,
numWallets: instances,
baseDir,
});

notify(
`🙌 Wallet (Pubkey: ${identity.public_key} ) recovered scanned ${numScanned} UTXO's, completed in ${timeDiffMinutes} minutes (${scannedRate} UTXOs/min). ${recoveredAmount} µT recovered for ${instances} instance(s).`
`🙌 Wallet (Pubkey: ${identity.public_key} ) recovered scanned ${numScanned} UTXOs, completed in ${timeDiffMinutes} minutes (${scannedRate} UTXOs/min). ${recoveredAmount} µT recovered for ${instances} instance(s).`
);
} catch (err) {
console.error(err);
Expand Down Expand Up @@ -136,7 +135,8 @@ async function main() {
});

// ------------------------- CRON ------------------------- //
new CronJob("0 2 * * *", () => runWalletRecoveryTest(1)).start();
new CronJob("0 2 * * *", () => runWalletRecoveryTest(1, "/temp/wallet-recovery", "parade jelly sample worth bind release forest snack job mobile divide ranch fee raccoon begin awful source thank check leaf vibrant stove material field")).start();
new CronJob("0 4 * * *", () => runWalletRecoveryTest(1, "/temp/wallet-recovery2", "divorce toy raw junk analyst giggle little artefact butter gain intact degree upgrade dwarf design right mean model great best swift program mammal curtain")).start();
//new CronJob("30 7 * * *", () => runWalletRecoveryTest(5)).start();
new CronJob("0 1 * * *", () =>
runBaseNodeSyncTest(SyncType.Archival)
Expand Down

0 comments on commit 73365a4

Please sign in to comment.