mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Add Unlock before Fatal
This commit is contained in:
parent
08bf1f243c
commit
5da0694ede
1 changed files with 1 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ func TestLazyQueue(t *testing.T) {
|
|||
if p.p != maxPri {
|
||||
stop := make(chan struct{})
|
||||
stopCh <- stop // No need to wait for `<-stop`. test failed anyway
|
||||
lock.Unlock()
|
||||
t.Fatalf("incorrect item (best known priority %d, popped %d)", maxPri, p.p)
|
||||
}
|
||||
q.Push(p)
|
||||
|
|
|
|||
Loading…
Reference in a new issue