Running LDAP tests sometimes causes LDAP context not initialized which most probably occur due to LDAP is being used immediately after configuration. This PR adds a dumb sleep to see if this can iron out this problem.
START: adminorg_ldap_test.go:22: TestVCD.Test_LDAP
Setting up LDAP (IP: 10.196.34.229)
# Configuring LDAP settings for Org 'nightly_gosdk' Done
Running: test_GroupCRUD
Running: test_GroupFinderGetGenericEntity
adminorg_ldap_test.go:66:
vcd.test_GroupFinderGetGenericEntity(check)
group_test.go:147:
check.Assert(err, IsNil)
... value *errors.errorString = &errors.errorString{s:"error creating group: API Error: 500: [ 46c7f18e-f4da-408e-a597-08ef2f79eb6e ] LDAP context not initialized. Error connecting to LDAP."} ("error creating group: API Error: 500: [ 46c7f18e-f4da-408e-a597-08ef2f79eb6e ] LDAP context not initialized. Error connecting to LDAP.")
Unconfiguring LDAP
FAIL: adminorg_ldap_test.go:22: TestVCD.Test_LDAP
Running LDAP tests sometimes causes
LDAP context not initialized
which most probably occur due to LDAP is being used immediately after configuration. This PR adds a dumb sleep to see if this can iron out this problem.