Skip to content

Commit 46f3260

Browse files
committed
invoices: make sure the db uses the same testTime.
1 parent 34e56b6 commit 46f3260

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invoices/invoiceregistry_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func TestInvoiceRegistry(t *testing.T) {
122122
makeKeyValueDB := func(t *testing.T) (invpkg.InvoiceDB,
123123
*clock.TestClock) {
124124

125-
testClock := clock.NewTestClock(testNow)
125+
testClock := clock.NewTestClock(testTime)
126126
db, err := channeldb.MakeTestInvoiceDB(
127127
t, channeldb.OptionClock(testClock),
128128
)
@@ -156,7 +156,7 @@ func TestInvoiceRegistry(t *testing.T) {
156156
},
157157
)
158158

159-
testClock := clock.NewTestClock(testNow)
159+
testClock := clock.NewTestClock(testTime)
160160

161161
return invpkg.NewSQLStore(executor, testClock), testClock
162162
}

0 commit comments

Comments
 (0)