mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
sweepbatcher: fix usage of EventuallyWithT
It should use the c variable passed into the lambda, not the parent t. It should use assert, not require package.
This commit is contained in:
parent
f0f64f83c3
commit
a64f4610ab
1 changed files with 2 additions and 2 deletions
|
|
@ -950,7 +950,7 @@ func testDelays(t *testing.T, store testStore, batcherStore testBatcherStore) {
|
|||
// Wait for batch publishing to be skipped, because initialDelay has not
|
||||
// ended.
|
||||
require.EventuallyWithT(t, func(c *assert.CollectT) {
|
||||
require.Contains(t, testLogger.debugMessages, stillWaitingMsg)
|
||||
assert.Contains(c, testLogger.debugMessages, stillWaitingMsg)
|
||||
}, test.Timeout, eventuallyCheckFrequency)
|
||||
|
||||
// Advance the clock to the end of initialDelay.
|
||||
|
|
@ -1274,7 +1274,7 @@ func testDelays(t *testing.T, store testStore, batcherStore testBatcherStore) {
|
|||
|
||||
// Wait for sweep to be added to the batch.
|
||||
require.EventuallyWithT(t, func(c *assert.CollectT) {
|
||||
require.Contains(t, testLogger2.infoMessages, "adding sweep %x")
|
||||
assert.Contains(c, testLogger2.infoMessages, "adding sweep %x")
|
||||
}, test.Timeout, eventuallyCheckFrequency)
|
||||
|
||||
// Advance the clock by publishDelay. Don't wait largeInitialDelay.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue