reset testLockHook
This commit is contained in:
parent
25a8227291
commit
f5e9a20c66
|
@ -176,6 +176,7 @@ func TestConsul_lostLock(t *testing.T) {
|
||||||
reLocked := make(chan struct{})
|
reLocked := make(chan struct{})
|
||||||
testLockHook = func() {
|
testLockHook = func() {
|
||||||
close(reLocked)
|
close(reLocked)
|
||||||
|
testLockHook = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// now we use the second client to break the lock
|
// now we use the second client to break the lock
|
||||||
|
|
Loading…
Reference in New Issue