diff options
Diffstat (limited to 'test/replicas.zig')
| -rw-r--r-- | test/replicas.zig | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/replicas.zig b/test/replicas.zig index f1d5c478..46eff641 100644 --- a/test/replicas.zig +++ b/test/replicas.zig @@ -2325,11 +2325,11 @@ fn diffCase(dir: []const u8) !bool { const look = try std.fmt.bufPrint(&lbuf, "Look {s}", .{patch}); var ok = true; for ([_]bool{ false, true }) |own| { - const a = try replica.Authority.init(gpa, .{ .cols = 100, .rows = 30, .boot = .tty }, host.host(), false); + const a = try replica.Authority.init(gpa, .{ .cols = 100, .rows = 30, .boot = .tty }, host.host()); defer a.deinit(); const first = try gpa.dupe(u8, try a.unit(0, 0)); defer gpa.free(first); - const rp = try replica.Replica.init(gpa, 1, first, false); + const rp = try replica.Replica.init(gpa, 1, first); defer rp.deinit(); if (own) { const msg = try gpa.dupe(u8, try rp.input(.{ .command = look })); @@ -2390,11 +2390,11 @@ fn plumbCase(dir: []const u8) !bool { const open = try std.fmt.bufPrint(&obuf, "Look {s}", .{notes}); var ok = true; for ([_][]const u8{ "Look https://ziglang.org", "Look 3f2a9c1" }) |look| for ([_]bool{ false, true }) |own| { - const a = try replica.Authority.init(gpa, .{ .cols = 100, .rows = 30, .boot = .tty }, host.host(), false); + const a = try replica.Authority.init(gpa, .{ .cols = 100, .rows = 30, .boot = .tty }, host.host()); defer a.deinit(); const first = try gpa.dupe(u8, try a.unit(0, 0)); defer gpa.free(first); - const rp = try replica.Replica.init(gpa, 1, first, false); + const rp = try replica.Replica.init(gpa, 1, first); defer rp.deinit(); rp.confirm(try a.local(.{ .command = open })); rp.settle(); @@ -2442,11 +2442,11 @@ fn plumbCase(dir: []const u8) !bool { // The rule from the session's plumbing file, read at boot. var pbuf: [256]u8 = undefined; try writeText(try std.fmt.bufPrintSentinel(&pbuf, "{s}/plumbing", .{dir}, 0), "type is text\ndata matches 'https://letters/.*'\nplumb to seemail\n\ninclude basic\n"); - const a = try replica.Authority.init(gpa, .{ .cols = 100, .rows = 30, .boot = .tty, .config_dir = dir }, host.host(), false); + const a = try replica.Authority.init(gpa, .{ .cols = 100, .rows = 30, .boot = .tty, .config_dir = dir }, host.host()); defer a.deinit(); const first = try gpa.dupe(u8, try a.unit(0, 0)); defer gpa.free(first); - const rp = try replica.Replica.init(gpa, 1, first, false); + const rp = try replica.Replica.init(gpa, 1, first); defer rp.deinit(); rp.confirm(try a.local(.{ .command = open })); rp.settle(); @@ -2901,9 +2901,9 @@ fn runEcho(seed: u64, rtt_ms: u64, on: bool, et: *EchoTotals) !void { } var sh: FakeShell = .{}; defer sh.out.deinit(gpa); - const a = try replica.Authority.init(gpa, .{ .cols = 100, .rows = 30, .boot = .tty_shell }, host.host(), false); + const a = try replica.Authority.init(gpa, .{ .cols = 100, .rows = 30, .boot = .tty_shell }, host.host()); defer a.deinit(); - const rp = try replica.Replica.init(gpa, 1, try a.unit(0, 0), false); + const rp = try replica.Replica.init(gpa, 1, try a.unit(0, 0)); defer rp.deinit(); rp.core().echo = &rp.echo; rp.echo.on = on; @@ -3474,9 +3474,9 @@ fn corpusCase(dir: []const u8) !bool { defer own_host.shown.deinit(); var noop: Host = .{}; const options: pardes.Options = .{ .cols = 100, .rows = 22, .file = shapes }; - const a = try replica.Authority.init(gpa, options, own_host.host(), false); + const a = try replica.Authority.init(gpa, options, own_host.host()); defer a.deinit(); - const b = try replica.Authority.init(gpa, options, noop.host(), false); + const b = try replica.Authority.init(gpa, options, noop.host()); defer b.deinit(); noop.core = b.core; _ = try b.unit(0, 0); |
