From b330f72bafdc5734c336ca456ecf9bca1155a98e Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Thu, 18 Dec 2025 14:48:04 +0000 Subject: [PATCH] nixos/vector: Tweak journald/clickhouse test to check the absence of zero results instead Fixes small race-condition between database being ready and Vector being able to log into it and then the result number changing --- nixos/tests/vector/journald-clickhouse.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/vector/journald-clickhouse.nix b/nixos/tests/vector/journald-clickhouse.nix index 2cef987d5676..640fdf947ab3 100644 --- a/nixos/tests/vector/journald-clickhouse.nix +++ b/nixos/tests/vector/journald-clickhouse.nix @@ -199,11 +199,11 @@ in ) clickhouse.fail( - "cat ${selectQuery} | clickhouse-client --user vector --password helloclickhouseworld | grep 2" + "cat ${selectQuery} | clickhouse-client --user vector --password helloclickhouseworld | grep -v 0" ) clickhouse.wait_until_succeeds( - "cat ${selectQuery} | clickhouse-client --user grafana --password helloclickhouseworld2 | grep 2" + "cat ${selectQuery} | clickhouse-client --user grafana --password helloclickhouseworld2 | grep -v 0" ) ''; }