summaryrefslogtreecommitdiff
path: root/test/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/panes.zig')
-rw-r--r--test/panes.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/panes.zig b/test/panes.zig
index 378229ac..407f2c3c 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -4302,7 +4302,7 @@ const PdfAddon = struct {
try std.testing.expectEqual(@as(usize, 0), placed);
}
- test "a PDF pane a client closes waits for the session's order (its kind's close is never guessed), then is gone in both" {
+ test "a PDF pane a client closes goes at once (its kind's close, never guessed, waits for the pane's teardown), then is gone in both" {
if (!addons.has_pdf) return error.SkipZigTest;
const R = pardes.replica;
const gpa = std.testing.allocator;
@@ -4317,8 +4317,8 @@ const PdfAddon = struct {
win.settle();
const stopped = win.stats.stopped;
const sent = try win.input(.{ .command = "Del" });
- try std.testing.expect(win.core().panes[c.id] != null);
- try std.testing.expectEqual(stopped + 1, win.stats.stopped);
+ try std.testing.expect(win.core().panes[c.id] == null);
+ try std.testing.expectEqual(stopped, win.stats.stopped);
win.confirm(try a.take(sent));
win.settle();
try std.testing.expect(a.core.panes[c.id] == null and win.core().panes[c.id] == null);