summaryrefslogtreecommitdiff
path: root/src/replica.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/replica.zig')
-rw-r--r--src/replica.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/replica.zig b/src/replica.zig
index b88b1328..8b0f8c8e 100644
--- a/src/replica.zig
+++ b/src/replica.zig
@@ -3113,7 +3113,7 @@ fn deliver(a: *Authority, screens: *Screens, peer: u16, r: *Replica, comptime wh
/// The blob cache of a test, in its own directory (never the user's).
fn testCache(tmp: *std.testing.TmpDir, buf: *[4200]u8, cap: u64) !Cache {
- var dir_buf: [std.fs.max_path_bytes]u8 = undefined;
+ var dir_buf: [std.Io.Dir.max_path_bytes]u8 = undefined;
const dir = dir_buf[0..try tmp.dir.realPath(std.testing.io, &dir_buf)];
return Cache.of(try std.fmt.bufPrint(buf, "{s}/" ++ Cache.name, .{dir}), cap);
}
@@ -3994,8 +3994,8 @@ test "a replica joined after a pane closed: the session's jump to it, its Panes
const a = try Authority.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml" }, TestHost.host(), false);
defer a.deinit();
// A file looked at and closed: a jump to it, Recent's, a closed pane.
- var cwd: [std.fs.max_path_bytes]u8 = undefined;
- var line: [std.fs.max_path_bytes + 32]u8 = undefined;
+ var cwd: [std.Io.Dir.max_path_bytes]u8 = undefined;
+ var line: [std.Io.Dir.max_path_bytes + 32]u8 = undefined;
const dir = std.mem.span(@as([*:0]u8, @ptrCast(std.c.getcwd(&cwd, cwd.len) orelse return error.NoCwd)));
_ = try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}/build.zig.zon", .{dir}) });
_ = try a.local(.{ .command = "Del" });
@@ -4045,8 +4045,8 @@ test "a replica's Del of a file its session's Recent knows asks the host what th
const gpa = std.testing.allocator;
const a = try Authority.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml" }, TestHost.host(), false);
defer a.deinit();
- var cwd: [std.fs.max_path_bytes]u8 = undefined;
- var line: [std.fs.max_path_bytes + 32]u8 = undefined;
+ var cwd: [std.Io.Dir.max_path_bytes]u8 = undefined;
+ var line: [std.Io.Dir.max_path_bytes + 32]u8 = undefined;
const dir = std.mem.span(@as([*:0]u8, @ptrCast(std.c.getcwd(&cwd, cwd.len) orelse return error.NoCwd)));
_ = try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}/build.zig.zon", .{dir}) });
// Joined while it is open: in the session's Recent, in no replica's.