@@ -517,7 +517,9 @@ func TestInvoiceCancelSingleHtlc(t *testing.T) {
517517func TestInvoiceCancelSingleHtlcAMP (t * testing.T ) {
518518 t .Parallel ()
519519
520- db , err := channeldb .MakeTestInvoiceDB (t , channeldb .OptionClock (testClock ))
520+ db , err := channeldb .MakeTestInvoiceDB (
521+ t , channeldb .OptionClock (testClock ),
522+ )
521523 require .NoError (t , err , "unable to make test db: %v" , err )
522524
523525 // We'll start out by creating an invoice and writing it to the DB.
@@ -691,11 +693,13 @@ func TestInvoiceCancelSingleHtlcAMP(t *testing.T) {
691693
692694// TestInvoiceTimeSeries tests that newly added invoices invoices, as well as
693695// settled invoices are added to the database are properly placed in the add
694- // add or settle index which serves as an event time series.
696+ // or settle index which serves as an event time series.
695697func TestInvoiceAddTimeSeries (t * testing.T ) {
696698 t .Parallel ()
697699
698- db , err := channeldb .MakeTestInvoiceDB (t , channeldb .OptionClock (testClock ))
700+ db , err := channeldb .MakeTestInvoiceDB (
701+ t , channeldb .OptionClock (testClock ),
702+ )
699703 require .NoError (t , err , "unable to make test db" )
700704
701705 ctxb := context .Background ()
@@ -853,7 +857,9 @@ func TestSettleIndexAmpPayments(t *testing.T) {
853857 t .Parallel ()
854858
855859 testClock := clock .NewTestClock (testNow )
856- db , err := channeldb .MakeTestInvoiceDB (t , channeldb .OptionClock (testClock ))
860+ db , err := channeldb .MakeTestInvoiceDB (
861+ t , channeldb .OptionClock (testClock ),
862+ )
857863 require .Nil (t , err )
858864
859865 // First, we'll make a sample invoice that'll be paid to several times
@@ -1021,7 +1027,9 @@ func TestSettleIndexAmpPayments(t *testing.T) {
10211027func TestFetchPendingInvoices (t * testing.T ) {
10221028 t .Parallel ()
10231029
1024- db , err := channeldb .MakeTestInvoiceDB (t , channeldb .OptionClock (testClock ))
1030+ db , err := channeldb .MakeTestInvoiceDB (
1031+ t , channeldb .OptionClock (testClock ),
1032+ )
10251033 require .NoError (t , err , "unable to make test db" )
10261034
10271035 ctxb := context .Background ()
@@ -1076,7 +1084,9 @@ func TestFetchPendingInvoices(t *testing.T) {
10761084func TestDuplicateSettleInvoice (t * testing.T ) {
10771085 t .Parallel ()
10781086
1079- db , err := channeldb .MakeTestInvoiceDB (t , channeldb .OptionClock (testClock ))
1087+ db , err := channeldb .MakeTestInvoiceDB (
1088+ t , channeldb .OptionClock (testClock ),
1089+ )
10801090 require .NoError (t , err , "unable to make test db" )
10811091
10821092 // We'll start out by creating an invoice and writing it to the DB.
@@ -1137,7 +1147,9 @@ func TestDuplicateSettleInvoice(t *testing.T) {
11371147func TestQueryInvoices (t * testing.T ) {
11381148 t .Parallel ()
11391149
1140- db , err := channeldb .MakeTestInvoiceDB (t , channeldb .OptionClock (testClock ))
1150+ db , err := channeldb .MakeTestInvoiceDB (
1151+ t , channeldb .OptionClock (testClock ),
1152+ )
11411153 require .NoError (t , err , "unable to make test db" )
11421154
11431155 // To begin the test, we'll add 50 invoices to the database. We'll
@@ -1869,7 +1881,9 @@ func TestAddInvoiceWithHTLCs(t *testing.T) {
18691881// that invoices with duplicate set ids are disallowed.
18701882func TestSetIDIndex (t * testing.T ) {
18711883 testClock := clock .NewTestClock (testNow )
1872- db , err := channeldb .MakeTestInvoiceDB (t , channeldb .OptionClock (testClock ))
1884+ db , err := channeldb .MakeTestInvoiceDB (
1885+ t , channeldb .OptionClock (testClock ),
1886+ )
18731887 require .Nil (t , err )
18741888
18751889 // We'll start out by creating an invoice and writing it to the DB.
0 commit comments