From 7cafa67f0a87a100979c109061e209aac2c62b48 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 21 Jun 2026 18:38:01 +0200 Subject: [PATCH] nix(loadtest): use faketime in jwt-cache test While we didn't have much problem in this test, it's surely not a problem either to make the test more reproducible with a fixed base timestamp. This gives us a tiny bit less of a diff on the next change. --- nix/tools/loadtest.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/tools/loadtest.nix b/nix/tools/loadtest.nix index ada1ba1c0..52cb8b9f0 100644 --- a/nix/tools/loadtest.nix +++ b/nix/tools/loadtest.nix @@ -67,11 +67,11 @@ let jwt-cache) export PGRST_JWT_SECRET="@$_arg_testdir/gen_jwks.json" - ${genTargets} "$_arg_testdir" + ${libfaketime}/bin/faketime '2000-01-01 00:00:00' ${genTargets} "$_arg_testdir" # shellcheck disable=SC2145 ${withTools.withPg} -f "$_arg_testdir"/fixtures.sql \ - ${withTools.withPgrst} -m "$_arg_monitor" \ + ${withTools.withPgrst} --faketime '2000-01-01 00:00:00' -m "$_arg_monitor" \ sh -c "cd \"$_arg_testdir\" && \ ${runner} -lazy -targets gen_targets.http -output \"$abs_output\" \"''${_arg_leftovers[@]}\"" ;;