Skip to content

Commit 7eb3702

Browse files
committed
Remove redundant tmp file existence check in wallet integration test
1 parent 4c71c02 commit 7eb3702

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

integration_test/tests/wallet.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ fn wallet__backup_wallet() {
6969
let node = Node::with_wallet(Wallet::Default, &[]);
7070
let file_path = integration_test::random_tmp_file();
7171

72-
if file_path.exists() {
73-
fs::remove_file(&file_path).expect("removefile");
74-
}
75-
7672
node.client.backup_wallet(&file_path).expect("backupwallet");
7773
assert!(file_path.exists(), "Backup file should exist at destination");
7874
assert!(file_path.is_file(), "Backup destination should be a file");

0 commit comments

Comments
 (0)