Skip to content

Commit

Permalink
fix: wallet names in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jun 5, 2024
1 parent d8fb7e3 commit cfaf3ce
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions clients/apps/nodejs/test_basic_workflow2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const client_config = require('./client_config');
async function removeDatabase() {
try {
const clientConfig = client_config.load();
const { stdout, stderr } = await exec(`rm ${clientConfig.databaseFile}`);
const { stdout, stderr } = await exec(`rm ./${clientConfig.databaseFile}`);
console.log('stdout:', stdout);
console.error('stderr:', stderr);
} catch (e) {
Expand Down Expand Up @@ -364,16 +364,19 @@ async function depositAndRepeatSend(clientConfig, wallet_1_name) {
await removeDatabase();

// // Deposit, iterative self transfer
// await removeDatabase();
// await createWallet(clientConfig, wallet_1_name);
// await walletTransfersToItselfTillLocktimeReachesBlockHeightAndWithdraw(clientConfig, wallet_1_name);
// await removeDatabase();

// // Deposit, repeat send
// await removeDatabase();
// await createWallet(clientConfig, wallet_1_name);
// await createWallet(clientConfig, wallet_2_name);
// await depositAndRepeatSend(clientConfig, wallet_1_name);
// await walletTransfersToAnotherAndBroadcastsBackupTx(clientConfig, wallet_1_name, wallet_2_name);
// await removeDatabase();
let wallet_3_name = "w3";
await removeDatabase();
await createWallet(clientConfig, wallet_3_name);
await walletTransfersToItselfTillLocktimeReachesBlockHeightAndWithdraw(clientConfig, wallet_3_name);
await removeDatabase();

// Deposit, repeat send
let wallet_4_name = "w4";
let wallet_5_name = "w5";
await removeDatabase();
await createWallet(clientConfig, wallet_4_name);
await createWallet(clientConfig, wallet_5_name);
await depositAndRepeatSend(clientConfig, wallet_4_name);
await walletTransfersToAnotherAndBroadcastsBackupTx(clientConfig, wallet_4_name, wallet_5_name);
await removeDatabase();
})();

0 comments on commit cfaf3ce

Please sign in to comment.