summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lspbench.zig3
-rw-r--r--test/process/builtins.zig4
-rw-r--r--test/snapshots/lspdebug.snap3
3 files changed, 4 insertions, 6 deletions
diff --git a/test/lspbench.zig b/test/lspbench.zig
index 9857b61c..4b107b25 100644
--- a/test/lspbench.zig
+++ b/test/lspbench.zig
@@ -175,7 +175,6 @@ fn runOnce(gpa: std.mem.Allocator, req_in: lsp.Req, expected: []const u8, r: *Re
fn reportText(rs: []const Result, rss: u64) void {
const o = std.debug.print;
- o("backend: {s}\n\n", .{lsp.backend_name});
o("{s:<24} {s:>9} {s:>7} {s:>10} {s:>10} {s}\n", .{ "kind", "supports", "rows", "cold(us)", "warm(us)", "verdict" });
o("{s}\n", .{&@as([78]u8, @splat('-'))});
var claimed: usize = 0;
@@ -206,7 +205,7 @@ fn reportText(rs: []const Result, rss: u64) void {
fn reportJson(rs: []const Result, rss: u64) void {
const o = std.debug.print;
- o("{{\"backend\":\"{s}\",\"rss_kib\":{d},\"probes\":[", .{ lsp.backend_name, rss });
+ o("{{\"rss_kib\":{d},\"probes\":[", .{rss});
for (rs, 0..) |r, i| {
if (i > 0) o(",", .{});
o("{{\"kind\":\"{s}\",\"supports\":{},\"rows\":{d},\"correct\":{},\"cold_us\":{d},\"warm_us\":{d}}}", .{
diff --git a/test/process/builtins.zig b/test/process/builtins.zig
index 410a3f54..55f4ed49 100644
--- a/test/process/builtins.zig
+++ b/test/process/builtins.zig
@@ -7,7 +7,7 @@ const has = process.has;
const check = process.check;
pub const cases = .{
- .{ "builtins: Lspinfo opens one +Lsp pane saying the backend and its servers, detached and in a pty", lspinfo },
+ .{ "builtins: Lspinfo opens one +Lsp pane saying its language servers, detached and in a pty", lspinfo },
};
fn lspinfo(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
@@ -43,7 +43,7 @@ fn lspinfo(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
process.nap(5);
};
const body = try c.pane(a, lsp, "body");
- try check(std.mem.startsWith(u8, body, "backend: lsp-client\n") and has(body, "protocol servers (lsp-client):"), "{s}", .{body});
+ try check(std.mem.startsWith(u8, body, "language servers:\n") and has(body, " zls "), "{s}", .{body});
try std.testing.expectEqualStrings("initial\n", try c.read(a, "/pane/1/body"));
var f: process.Files = .init(gpa, address);
defer f.deinit();
diff --git a/test/snapshots/lspdebug.snap b/test/snapshots/lspdebug.snap
index 22fa097b..c66a5d67 100644
--- a/test/snapshots/lspdebug.snap
+++ b/test/snapshots/lspdebug.snap
@@ -30,8 +30,7 @@ snap why-closed
# Check the report's answers, not installed compiler paths or dependency counts.
key space l i
-wait 10000 backend: lsp-client
-wait 10000 protocol servers (lsp-client):
+wait 10000 language servers:
wait 10000 zls
key space w j enter
key /