invoices: make sure the db uses the same testTime.

This commit is contained in:
ziggie 2025-01-29 01:24:12 +01:00 committed by Oliver Gugger
parent 3c354cc350
commit 4b2793a815
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -122,7 +122,7 @@ func TestInvoiceRegistry(t *testing.T) {
makeKeyValueDB := func(t *testing.T) (invpkg.InvoiceDB, makeKeyValueDB := func(t *testing.T) (invpkg.InvoiceDB,
*clock.TestClock) { *clock.TestClock) {
testClock := clock.NewTestClock(testNow) testClock := clock.NewTestClock(testTime)
db, err := channeldb.MakeTestInvoiceDB( db, err := channeldb.MakeTestInvoiceDB(
t, channeldb.OptionClock(testClock), 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 return invpkg.NewSQLStore(executor, testClock), testClock
} }