From 0bf20d52e68be2caaca6f027f798f060cf3001ab Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Tue, 21 Feb 2017 16:02:17 -0800 Subject: [PATCH] ITS8589 - This modifies the test so that it will not trigger the issue described in the ITS. --- tests/scripts/test059-slave-config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/scripts/test059-slave-config b/tests/scripts/test059-slave-config index 8448cd591f..ece5738cfd 100755 --- a/tests/scripts/test059-slave-config +++ b/tests/scripts/test059-slave-config @@ -271,6 +271,20 @@ if test $RC != 0 ; then exit $RC fi +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"}'` + if test "x$RESULT" = "xOK" ; then + RC=0 + break + fi + echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..." + sleep $SLEEP1 +done + nullExclude="" nullOK="" test $BACKEND = null && nullExclude="# " nullOK="OK" -- 2.39.2