diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/migrations.rs b/tests/migrations.rs index e66895c..c892f72 100644 --- a/tests/migrations.rs +++ b/tests/migrations.rs @@ -350,6 +350,8 @@ fn incoming_submissions() { std::fs::create_dir_all(&incoming).unwrap(); std::fs::rename(dir, incoming.join(name)).unwrap(); }; + // Half copied, under a dot name: skipped, and left alone. + std::fs::create_dir_all(host.root.join("state/incoming/.half/channels")).unwrap(); // A first deployment: nothing but a waiting submission. put("1", &rotate(&host, "first", "a", b"A")); let check = host.migrate(&s2, true); @@ -370,6 +372,8 @@ fn incoming_submissions() { assert_eq!(host.view("a", "a").unwrap(), b"A"); assert!(host.snapshot("secrets").is_some()); assert!(!host.root.join("state/incoming/1").exists()); + assert!(host.root.join("state/incoming/.half").exists()); + assert_eq!(migration.incoming.len(), 1); // The deploy created the state directory, readable by all; it is root's now. use std::os::unix::fs::PermissionsExt; let mode = std::fs::metadata(host.root.join("state")) |
