diff tests/test-racy-mutations.t @ 48978:c80544aa4971

branching: merge stable into default
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 21 Mar 2022 10:55:50 +0100
parents bd752712ccaf
children dd384ad01d88
line wrap: on
line diff
--- a/tests/test-racy-mutations.t	Fri Mar 18 17:39:06 2022 +0100
+++ b/tests/test-racy-mutations.t	Mon Mar 21 10:55:50 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