From 95d43d1e39617c6ea0b411d2ba15fdb45395b10d Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Fri, 12 Sep 2025 23:22:11 +0200 Subject: [PATCH] testing: unrace functional-repl using sleep(1) as a synchronization mechanism does not work. use fifos instead. fixes #690 and ci constantly falling over in the same exact fucking source line Change-Id: I51725f8e439b6753f3212d2897dbb0620ad77a37 --- tests/functional/repl.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/repl.sh b/tests/functional/repl.sh index 54acc4986..116f5e480 100644 --- a/tests/functional/repl.sh +++ b/tests/functional/repl.sh @@ -147,7 +147,9 @@ foo + baz # - Check that the result has changed replResult=$( ( echo "changingThing" -sleep 1 # Leave the repl the time to eval 'foo' +mkfifo fifo +echo "builtins.readFile ./fifo" +echo > fifo sed -i 's/beforeChange/afterChange/' flake/flake.nix echo ":reload" echo "changingThing"