Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: another fix for the recovery daily test #3978

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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