diff --git a/api/semaphore_test.go b/api/semaphore_test.go index b2ec954ed..0b88e8b25 100644 --- a/api/semaphore_test.go +++ b/api/semaphore_test.go @@ -295,6 +295,7 @@ func TestAPI_SemaphoreConflict(t *testing.T) { t.Parallel() c, s := makeClient(t) defer s.Stop() + s.WaitForSerfCheck(t) lock, session := createTestLock(t, c, "test/sema/.lock") defer session.Destroy(lock.opts.Session, nil)