mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
invoices: make sure the db uses the same testTime.
This commit is contained in:
parent
3c354cc350
commit
4b2793a815
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ func TestInvoiceRegistry(t *testing.T) {
|
|||
makeKeyValueDB := func(t *testing.T) (invpkg.InvoiceDB,
|
||||
*clock.TestClock) {
|
||||
|
||||
testClock := clock.NewTestClock(testNow)
|
||||
testClock := clock.NewTestClock(testTime)
|
||||
db, err := channeldb.MakeTestInvoiceDB(
|
||||
t, channeldb.OptionClock(testClock),
|
||||
)
|
||||
|
@ -156,7 +156,7 @@ func TestInvoiceRegistry(t *testing.T) {
|
|||
},
|
||||
)
|
||||
|
||||
testClock := clock.NewTestClock(testNow)
|
||||
testClock := clock.NewTestClock(testTime)
|
||||
|
||||
return invpkg.NewSQLStore(executor, testClock), testClock
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue