From: Howard Chu Date: Wed, 24 Dec 2003 14:03:43 +0000 (+0000) Subject: ITS#2895 sleep(1) here masks race conditions, don't do it. X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8450ad588253ca41126ab46118d7d4b19cc097c;p=openldap ITS#2895 sleep(1) here masks race conditions, don't do it. --- diff --git a/tests/progs/slapd-addel.c b/tests/progs/slapd-addel.c index 78860f01f1..4660a87afb 100644 --- a/tests/progs/slapd-addel.c +++ b/tests/progs/slapd-addel.c @@ -292,8 +292,11 @@ do_addel( } +#if 0 /* wait a second for the add to really complete */ + /* This masks some race conditions though. */ sleep( 1 ); +#endif /* now delete the entry again */ if ( ldap_delete_s( ld, entry ) != LDAP_SUCCESS ) {