tests/test-racy-mutations.t
branchstable
changeset 48977 bd752712ccaf
parent 47214 906a7bcaac86
child 49046 dd384ad01d88
--- a/tests/test-racy-mutations.t	Fri Mar 18 21:15:54 2022 -0700
+++ b/tests/test-racy-mutations.t	Thu Mar 17 14:58:46 2022 +0100
@@ -14,14 +14,7 @@
   >     f="\${WAITLOCK_FILE}"
   >     start=\`date +%s\`
   >     timeout=5
-  >     while [ \\( ! -f \$f \\) -a \\( ! -L \$f \\) ]; do
-  >         now=\`date +%s\`
-  >         if [ "\`expr \$now - \$start\`" -gt \$timeout ]; then
-  >             echo "timeout: \$f was not created in \$timeout seconds (it is now \$(date +%s))"
-  >             exit 1
-  >         fi
-  >         sleep 0.1
-  >     done
+  >     $RUNTESTDIR/testlib/wait-on-file "\$timeout" "\$f"
   >     if [ \$# -gt 1 ]; then
   >         cat "\$@"
   >     fi