From f5e9a20c660e0dbd5bc5c7a01571d3caccec597e Mon Sep 17 00:00:00 2001 From: James Bardin Date: Sun, 8 Oct 2017 16:24:45 -0400 Subject: [PATCH] reset testLockHook --- backend/remote-state/consul/client_test.go | 1 + 1 file changed, 1 insertion(+) 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