]> git.sur5r.net Git - openldap/commitdiff
Finish SLEEP fixes
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 6 Mar 2009 00:32:21 +0000 (00:32 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 6 Mar 2009 00:32:21 +0000 (00:32 +0000)
tests/scripts/test017-syncreplication-refresh
tests/scripts/test018-syncreplication-persist
tests/scripts/test019-syncreplication-cascade
tests/scripts/test049-sync-config

index 572edf77b4b2840e7461bbf1766f7e65b221685a..04f1f0be327635dc077234ffc7ff5bd12712a1ea 100755 (executable)
@@ -212,8 +212,8 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
-echo "Waiting 15 seconds for syncrepl to receive changes..."
-sleep 15
+echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
+sleep $SLEEP1
 
 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 15 seconds for syncrepl to receive changes..."
-sleep 15
+echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
+sleep $SLEEP1
 
 echo "Performing modify alone on the producer..."
 $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
index 47579a72f276468cb26628fb2b8e97a2bbc6e23d..fda8bcc539281aa87dcc183c1c80f3786aedf574 100755 (executable)
@@ -148,8 +148,8 @@ for i in 0 1 2 3 4 5; do
        sleep 5
 done
 
-echo "Waiting 15 seconds for consumer to reconnect..."
-sleep 15
+echo "Waiting $SLEEP1 seconds for consumer to reconnect..."
+sleep $SLEEP1
 
 if test $RC != 0 ; then
        echo "ldapsearch failed ($RC)!"
index 1d4bde9d3f0d4db57c953bb713aade863b956415..f6d3ede6154a0ff69588fafdff9122725cdb02c3 100755 (executable)
@@ -361,8 +361,8 @@ if test $RC != 0 ; then
         exit $RC
 fi      
 
-echo "Waiting 25 seconds for syncrepl to receive changes..."
-sleep 25
+echo "Waiting $SLEEP2 seconds for syncrepl to receive changes..."
+sleep $SLEEP2 
 
 echo "Using ldapsearch to read all the entries from the master..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
index 4ef7272891b173ce0b9b833af14d1445035a8b3c..8ca33320dc507a83e07440033cab3153e32f32ff 100755 (executable)
@@ -322,8 +322,8 @@ olcSyncRepl: rid=002 provider=$URI1 binddn="cn=config" bindmethod=simple
   credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
   retry="3 5 300 5" timeout=3
 EOF
-echo "Waiting 10 seconds for syncrepl to receive changes..."
-sleep 10
+echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
+sleep $SLEEP1
 
 echo "Using ldapsearch to read config from the producer..."
 $LDAPSEARCH -b cn=config -D cn=config -H $URI1 -y $CONFIGPWF  \