From 52cb7af2f6ff7331e3469a05ebccc8cf5f37a3ba Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 29 Jun 2009 23:25:19 +0000 Subject: [PATCH] Add delays to allow refint to complete --- tests/scripts/test057-memberof-refint | 8 ++++++++ 1 file changed, 8 insertions(+) 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 \ -- 2.39.5