From 8ef0dca3ebee42bd0078e4d62ffea826bd93e7ad Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@openldap.org>
Date: Wed, 28 Jan 2009 20:22:51 +0000
Subject: [PATCH] Fix creeping sleeps

---
 tests/scripts/test017-syncreplication-refresh | 8 ++++----
 tests/scripts/test018-syncreplication-persist | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/scripts/test017-syncreplication-refresh b/tests/scripts/test017-syncreplication-refresh
index a7088d6d71..0ffd548717 100755
--- a/tests/scripts/test017-syncreplication-refresh
+++ b/tests/scripts/test017-syncreplication-refresh
@@ -212,8 +212,8 @@ if test $RC != 0 ; then
 	exit $RC
 fi
 
-echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
-sleep $SLEEP1
+echo "Waiting 15 seconds for syncrepl to receive changes..."
+sleep 15
 
 echo "Performing modrdn alone on the producer..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
@@ -232,8 +232,8 @@ if test $RC != 0 ; then
 	exit $RC
 fi
 
-echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
-sleep $SLEEP1
+echo "Waiting 15 seconds for syncrepl to receive changes..."
+sleep 15
 
 echo "Performing modify alone on the producer..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
diff --git a/tests/scripts/test018-syncreplication-persist b/tests/scripts/test018-syncreplication-persist
index 4142e31020..606ac615de 100755
--- a/tests/scripts/test018-syncreplication-persist
+++ b/tests/scripts/test018-syncreplication-persist
@@ -148,8 +148,8 @@ for i in 0 1 2 3 4 5; do
 	sleep 5
 done
 
-echo "Waiting $SLEEP1 seconds for consumer to reconnect..."
-sleep $SLEEP1
+echo "Waiting 15 seconds for consumer to reconnect..."
+sleep 15
 
 if test $RC != 0 ; then
 	echo "ldapsearch failed ($RC)!"
-- 
GitLab