summaryrefslogtreecommitdiff
path: root/test/fs_namespace.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs_namespace.zig')
-rw-r--r--test/fs_namespace.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fs_namespace.zig b/test/fs_namespace.zig
index ef5dec60..ceda8158 100644
--- a/test/fs_namespace.zig
+++ b/test/fs_namespace.zig
@@ -203,7 +203,7 @@ test "explicit OS file opens and restores keep their names and request watches"
try std.testing.expectEqualStrings("const disk = 1;\n", pane.file.?.content);
var watched_open = false;
while (p.nextEffect()) |effect| if (effect == .watch and effect.watch.on) {
- if (effect.watch.pane == opened) watched_open = true;
+ if (effect.watch.pane.index() == opened) watched_open = true;
};
try std.testing.expect(watched_open);
// Unsaved, dumped and loaded: its text kept, its file watched again.
@@ -216,7 +216,7 @@ test "explicit OS file opens and restores keep their names and request watches"
try std.testing.expectEqualStrings("// unsaved\nconst disk = 1;\n", copy.file.?.content);
var watched_restore = false;
while (restored.nextEffect()) |effect| if (effect == .watch and effect.watch.on) {
- if (effect.watch.pane == opened) watched_restore = true;
+ if (effect.watch.pane.index() == opened) watched_restore = true;
};
try std.testing.expect(watched_restore);
}