summaryrefslogtreecommitdiff
path: root/test/behaviour/mounts.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behaviour/mounts.zig')
-rw-r--r--test/behaviour/mounts.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/behaviour/mounts.zig b/test/behaviour/mounts.zig
index 57685a38..c05166bc 100644
--- a/test/behaviour/mounts.zig
+++ b/test/behaviour/mounts.zig
@@ -23,3 +23,10 @@ test "mounts: Mount with no dial is wrong #args, any other x!y a bad dial addres
try std.testing.expect(has(s.said, "no such mount"));
}
}
+
+test "mounts: a Mount dial with a network it does not know is a bad dial address, EINVAL" {
+ var s = try Session.initFile(std.testing.allocator, "x\n");
+ defer s.deinit();
+ try expectEqual(@as(u16, 22), try s.refused("/ctl", "Mount peer nowhere!x\n"));
+ try std.testing.expect(std.mem.startsWith(u8, s.said, "Mount: bad dial address: nowhere!x"));
+}