mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
queue: replace defer cleanup with t.Cleanup
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
parent
5e6690107e
commit
7070be52b7
@ -14,7 +14,7 @@ func testQueueAddDrain(t *testing.T, size, numStart, numStop, numAdd, numDrain i
|
||||
queue.Start()
|
||||
}
|
||||
for i := 0; i < numStop; i++ {
|
||||
defer queue.Stop()
|
||||
t.Cleanup(queue.Stop)
|
||||
}
|
||||
|
||||
// Pushes should never block for long.
|
||||
|
Loading…
Reference in New Issue
Block a user