From: Howard Chu Date: Mon, 29 Jun 2009 23:25:19 +0000 (+0000) Subject: Add delays to allow refint to complete X-Git-Tag: ACLCHECK_0~476 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52cb7af2f6ff7331e3469a05ebccc8cf5f37a3ba;p=openldap Add delays to allow refint to complete --- diff --git a/tests/scripts/test057-memberof-refint b/tests/scripts/test057-memberof-refint index d3318621d2..8a9251162a 100755 --- a/tests/scripts/test057-memberof-refint +++ b/tests/scripts/test057-memberof-refint @@ -186,6 +186,10 @@ deleteoldrdn:1 newsuperior: $BASEDN EOF +# refint runs in a background thread, so it most likely won't complete +# before the modify returns. Give it some time to execute. +sleep 1 + echo "Re-search the entire database..." echo "# Re-search the entire database..." >> $SEARCHOUT $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ @@ -208,6 +212,8 @@ deleteoldrdn:1 newsuperior: $BASEDN EOF +sleep 1 + echo "Re-search the entire database..." echo "# Re-search the entire database..." >> $SEARCHOUT $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ @@ -227,6 +233,8 @@ dn: cn=Baby Herman,ou=Toons,$BASEDN changetype: delete EOF +sleep 1 + echo "Re-search the entire database..." echo "# Re-search the entire database..." >> $SEARCHOUT $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \