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.
This commit is contained in:
Wolfgang Walther
2026-06-26 19:33:51 +00:00
parent 3909e85f67
commit 7cafa67f0a
+2 -2
View File
@@ -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[@]}\""
;;