diff options
| author | tv <tv@krebsco.de> | 2026-11-18 12:38:19 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-18 12:38:19 +0100 |
| commit | 257ad0391ff8eba437108e1885c45314e9fd5833 (patch) | |
| tree | 3098609e38125c0afb326efeb41a08d0045da3d4 /src/swarm/auth.rs | |
| parent | cfe3dbaff24b5ae433b3203d69c7e9bceb4e1ccc (diff) | |
| parent | 55f36a960a90aedcb6e899ea963cc642fd630a82 (diff) | |
Merge branch 'ecdsa'
Diffstat (limited to 'src/swarm/auth.rs')
| -rw-r--r-- | src/swarm/auth.rs | 3 |
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(); |
