From 4b2793a8153ff944a5518fc351feb88658aa991a Mon Sep 17 00:00:00 2001 From: ziggie Date: Wed, 29 Jan 2025 01:24:12 +0100 Subject: [PATCH] invoices: make sure the db uses the same testTime. --- invoices/invoiceregistry_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoices/invoiceregistry_test.go b/invoices/invoiceregistry_test.go index b926260f8..ba110791b 100644 --- a/invoices/invoiceregistry_test.go +++ b/invoices/invoiceregistry_test.go @@ -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 }