reset testLockHook

This commit is contained in:
James Bardin 2017-10-08 16:24:45 -04:00
parent 25a8227291
commit f5e9a20c66
1 changed files with 1 additions and 0 deletions

View File

@ -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