summaryrefslogtreecommitdiff
path: root/test/snapshot.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshot.zig')
-rw-r--r--test/snapshot.zig8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/snapshot.zig b/test/snapshot.zig
index 0a2b299d..39350bee 100644
--- a/test/snapshot.zig
+++ b/test/snapshot.zig
@@ -313,9 +313,11 @@ fn runScript(arena: std.mem.Allocator, exe_z: [:0]const u8, script_path: []const
_ = setenv("XDG_CONFIG_HOME", config_home, 1);
_ = setenv("TERM", "xterm-256color", 1);
_ = setenv("LC_ALL", "C", 1);
- // durations cannot live in a golden; the lsp introspection views print
- // `-` for them when this is set (see lsp_zls.zig hideTime)
- _ = setenv("PARDES_LSP_NOTIME", "1", 1);
+ // a wall clock cannot live in a golden; everything that would print one
+ // prints fixed characters instead when this is set — the lsp introspection
+ // views' durations (lsp_zls.zig hideTime) and the transient message row's
+ // time of day (message.zig stamp)
+ _ = setenv("PARDES_NOTIME", "1", 1);
// Pin the dump path: live runs use a timestamped file under the user data
// dir (dump.outPath), which would make the dump/load/restore goldens
// nondeterministic. Per-SCRIPT, not one shared /tmp/pardes-dump.zon: four