diff options
Diffstat (limited to 'test/fs_namespace.zig')
| -rw-r--r-- | test/fs_namespace.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fs_namespace.zig b/test/fs_namespace.zig index fa6657eb..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); } @@ -256,7 +256,7 @@ test "owned cwd failed file opens never publish a pane or retain a reservation" const p = try pardes.Pardes.init(allocator.allocator(), .{ .tty_only = true }); defer p.deinit(); const source = try p.setTestFile("source body\n"); - p.setCwd(0, "/source/directory"); + p.setCwd(.at(0), "/source/directory"); while (p.nextEffect()) |_| {} var path: [128]u8 = undefined; const name = try std.fmt.bufPrint(&path, "/virtual/pane/{d}/body", .{source.serial}); |
