aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-18 12:38:19 +0100
committertv <tv@krebsco.de>2026-11-18 12:38:19 +0100
commit257ad0391ff8eba437108e1885c45314e9fd5833 (patch)
tree3098609e38125c0afb326efeb41a08d0045da3d4 /src/swarm
parentcfe3dbaff24b5ae433b3203d69c7e9bceb4e1ccc (diff)
parent55f36a960a90aedcb6e899ea963cc642fd630a82 (diff)
Merge branch 'ecdsa'
Diffstat (limited to 'src/swarm')
-rw-r--r--src/swarm/auth.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/swarm/auth.rs b/src/swarm/auth.rs
index 98a004c..7ac813b 100644
--- a/src/swarm/auth.rs
+++ b/src/swarm/auth.rs
@@ -166,7 +166,8 @@ mod tests {
/// A swarm key file is made only when asked, then read as any other.
#[test]
fn swarm_key_created_only_when_asked() {
- let path = crate::files::scratch_dir("swarm-key-create").join("swarm.key");
+ let dir = crate::files::scratch_dir("swarm-key-create");
+ let path = dir.join("swarm.key");
assert!(SwarmKey::from_file(&path, false).is_err());
assert!(!path.exists());
let created = SwarmKey::from_file(&path, true).unwrap();