Skip to content

Commit 22d71b2

Browse files
committed
fix: sanitize the snapshot folder
1 parent 45dcd31 commit 22d71b2

File tree

1 file changed

+3
-0
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+3
-0
lines changed

testnet/stacks-node/src/tests/signer/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SignerTest<Sp
299299
return SetupSnapshotResult::NoSnapshot;
300300
};
301301

302+
// sanitize the snapshot name
303+
let snapshot_name = snapshot_name.replace("::", "_");
304+
302305
if env::var("STACKS_TEST_SNAPSHOT") != Ok("1".into()) {
303306
return SetupSnapshotResult::NoSnapshot;
304307
}

0 commit comments

Comments
 (0)