diff --git a/backend/remote-state/consul/client_test.go b/backend/remote-state/consul/client_test.go index 09e1a7d9a..ef3c5b187 100644 --- a/backend/remote-state/consul/client_test.go +++ b/backend/remote-state/consul/client_test.go @@ -176,6 +176,7 @@ func TestConsul_lostLock(t *testing.T) { reLocked := make(chan struct{}) testLockHook = func() { close(reLocked) + testLockHook = nil } // now we use the second client to break the lock