Cuong Manh Le
c9c829a379
test(cli): scope probe journal assertions to their own log lines
...
captureDebugMainLog swaps the process-wide mainLog, so every
mainLog.Load().Warn()/.Error() site in the package writes into the
buffer while it is installed, including goroutines left running by
other tests. retainedProbeLines returned every retained line and the
tests asserted field values over all of them, so one unrelated warn
failed the run.
Test_checkDnsLoopKeepsACustomKeyOutOfTheJournal hit this on Windows,
where the loop probe held the buffer open for two seconds:
upstream_probe_journal_test.go: field "upstream": got , want upstream.custom
The sibling tests were exposed the same way; they index retained[0]
after a strict length check, so a stray line fails them as got 2, want 1.
Let retainedProbeLines take the messages a caller owns and return only
those lines. wantNoProbeSecret keeps scanning every retained line,
which is what that leak check is for.
2026-09-23 15:17:38 +07:00
..
2024-02-07 14:40:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-09-23 14:46:38 +07:00
2026-09-18 13:37:27 +07:00
2025-02-18 20:25:13 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-07-13 21:50:02 +07:00
2026-08-14 15:27:54 +07:00
2026-09-04 16:46:55 +07:00
2026-09-03 13:57:38 +07:00
2026-09-23 14:46:38 +07:00
2026-09-22 21:07:51 +07:00
2026-04-30 19:19:18 +07:00
2026-09-04 16:47:29 +07:00
2026-09-04 16:47:29 +07:00
2026-04-30 19:19:18 +07:00
2026-09-22 21:07:51 +07:00
2026-08-24 15:18:01 +07:00
2026-09-03 13:57:38 +07:00
2026-04-30 19:19:18 +07:00
2026-07-14 23:20:27 +07:00
2026-09-04 16:46:55 +07:00
2026-09-04 16:46:55 +07:00
2026-08-14 15:30:05 +07:00
2026-08-14 15:30:05 +07:00
2026-07-14 23:20:27 +07:00
2026-09-22 21:07:51 +07:00
2026-09-03 13:57:38 +07:00
2026-08-24 15:16:12 +07:00
2026-09-03 13:57:38 +07:00
2026-09-03 13:57:38 +07:00
2026-09-03 13:57:38 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-23 14:46:38 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-08-14 15:29:06 +07:00
2026-09-22 21:07:51 +07:00
2026-09-23 14:46:38 +07:00
2026-08-12 14:05:18 +07:00
2026-09-21 19:06:13 +07:00
2026-08-14 15:29:06 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-23 14:46:38 +07:00
2026-09-22 21:07:51 +07:00
2026-09-03 13:58:24 +07:00
2026-09-22 21:07:51 +07:00
2026-09-23 14:46:38 +07:00
2026-09-22 21:08:04 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-02 16:54:35 +07:00
2026-09-02 16:54:35 +07:00
2026-09-02 16:54:35 +07:00
2026-09-02 16:54:35 +07:00
2026-08-04 14:12:15 +07:00
2026-08-28 14:01:23 +07:00
2026-08-28 14:01:23 +07:00
2026-08-28 14:01:23 +07:00
2026-08-28 14:02:24 +07:00
2026-08-28 14:02:24 +07:00
2026-08-28 14:02:24 +07:00
2026-09-23 14:46:38 +07:00
2026-09-04 16:46:55 +07:00
2026-09-04 16:46:55 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:18 +07:00
2026-08-24 15:18:01 +07:00
2026-08-12 14:32:13 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-18 13:37:27 +07:00
2026-09-22 21:07:51 +07:00
2026-09-23 14:46:38 +07:00
2026-09-03 13:57:38 +07:00
2026-08-14 15:29:32 +07:00
2026-08-24 15:17:25 +07:00
2026-09-23 14:46:38 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-04-30 19:19:19 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2023-12-13 14:53:29 +07:00
2026-09-23 15:17:26 +07:00
2026-08-24 15:17:03 +07:00
2026-09-22 21:07:51 +07:00
2026-08-24 15:14:59 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-09-23 14:46:38 +07:00
2026-09-23 14:46:38 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-18 13:36:47 +07:00
2026-09-22 21:07:51 +07:00
2026-09-18 13:36:47 +07:00
2026-09-18 13:36:47 +07:00
2026-09-18 13:36:47 +07:00
2026-09-22 21:07:51 +07:00
2026-09-23 14:46:38 +07:00
2026-04-30 19:19:18 +07:00
2025-02-18 20:25:13 +07:00
2026-08-12 14:32:13 +07:00
2026-08-12 14:32:13 +07:00
2026-08-12 14:32:13 +07:00
2026-09-21 19:06:13 +07:00
2026-07-13 20:18:26 +07:00
2026-07-13 20:18:26 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2023-08-15 18:22:38 +07:00
2026-09-22 21:18:41 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-09-18 13:36:47 +07:00
2026-09-18 13:36:47 +07:00
2026-09-18 13:36:47 +07:00
2026-08-12 14:05:18 +07:00
2026-08-12 14:05:18 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-09-04 16:46:55 +07:00
2024-05-09 18:39:30 +07:00
2026-04-30 19:19:18 +07:00
2026-09-23 14:46:38 +07:00
2026-04-30 19:19:18 +07:00
2026-07-15 23:50:19 +07:00
2026-04-30 19:19:18 +07:00
2026-09-23 14:46:38 +07:00
2026-04-30 19:19:18 +07:00
2026-09-04 16:46:55 +07:00
2026-09-04 16:46:55 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-04 16:46:55 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-23 14:46:38 +07:00
2026-09-23 14:46:38 +07:00
2026-09-23 14:46:38 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-09-23 14:46:38 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2025-05-15 17:00:59 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2025-03-26 23:18:36 +07:00
2025-03-26 23:18:36 +07:00
2026-04-30 19:19:18 +07:00
2026-08-24 15:18:01 +07:00
2026-09-03 13:57:38 +07:00
2026-09-03 13:57:38 +07:00
2026-08-24 15:17:03 +07:00
2026-08-24 15:18:01 +07:00
2026-08-14 15:30:05 +07:00
2026-08-14 15:30:05 +07:00
2026-09-03 13:57:38 +07:00
2026-09-03 13:57:38 +07:00
2026-09-22 21:07:51 +07:00
2026-08-24 15:16:12 +07:00
2026-08-14 15:29:06 +07:00
2026-09-03 13:57:38 +07:00
2026-09-23 14:46:38 +07:00
2026-09-18 13:35:00 +07:00
2026-09-18 13:35:00 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-07-14 23:20:27 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2026-09-23 15:17:38 +07:00
2026-09-23 14:46:38 +07:00
2026-09-22 21:07:51 +07:00
2026-09-22 21:07:51 +07:00
2024-02-07 14:40:18 +07:00