mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue