From 9621d0c3d51bb649a0fc3b9af4e9d2b412be5ee7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 21 Mar 2021 20:33:37 +0000 Subject: [PATCH] Fix typos in schema replication check --- tests/scripts/test059-consumer-config | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/scripts/test059-consumer-config b/tests/scripts/test059-consumer-config index d90d18926c..4c20ddf125 100755 --- a/tests/scripts/test059-consumer-config +++ b/tests/scripts/test059-consumer-config @@ -229,8 +229,7 @@ add: olcUpdateRef olcUpdateRef: $URI1 EOF -echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..." -sleep $SLEEP1 +sleep 1 echo "Using ldapsearch to check that syncrepl received config changes..." RC=32 @@ -275,8 +274,8 @@ echo "Using ldapsearch to check that syncrepl received the schema changes..." RC=32 for i in 0 1 2 3 4 5; do RESULT=`$LDAPSEARCH -H $URI2 -D cn=config -y $CONFIGPWF \ - -s base -b "cn=schema,cn=config" \ - '(cn=openldap)' 2>&1 | awk '/^dn:/ {print "OK"}'` + -s sub -b "cn=schema,cn=config" \ + '(cn=*openldap)' 2>&1 | awk '/^dn:/ {print "OK"}'` if test "x$RESULT" = "xOK" ; then RC=0 break -- 2.47.3