@@ -1407,15 +1407,15 @@ func TestQueryInvoices(t *testing.T) {
14071407 {
14081408 query : invpkg.InvoiceQuery {
14091409 NumMaxInvoices : numInvoices ,
1410- CreationDateEnd : time . Unix ( 25 , 0 ) ,
1410+ CreationDateEnd : 25 ,
14111411 },
14121412 expected : invoices [:25 ],
14131413 },
14141414 // Fetch invoices >= 26 creation date.
14151415 {
14161416 query : invpkg.InvoiceQuery {
14171417 NumMaxInvoices : numInvoices ,
1418- CreationDateStart : time . Unix ( 26 , 0 ) ,
1418+ CreationDateStart : 26 ,
14191419 },
14201420 expected : invoices [25 :],
14211421 },
@@ -1424,7 +1424,7 @@ func TestQueryInvoices(t *testing.T) {
14241424 query : invpkg.InvoiceQuery {
14251425 PendingOnly : true ,
14261426 NumMaxInvoices : numInvoices ,
1427- CreationDateEnd : time . Unix ( 25 , 0 ) ,
1427+ CreationDateEnd : 25 ,
14281428 },
14291429 expected : pendingInvoices [:13 ],
14301430 },
@@ -1433,7 +1433,7 @@ func TestQueryInvoices(t *testing.T) {
14331433 query : invpkg.InvoiceQuery {
14341434 PendingOnly : true ,
14351435 NumMaxInvoices : numInvoices ,
1436- CreationDateStart : time . Unix ( 26 , 0 ) ,
1436+ CreationDateStart : 26 ,
14371437 },
14381438 expected : pendingInvoices [13 :],
14391439 },
@@ -1442,7 +1442,7 @@ func TestQueryInvoices(t *testing.T) {
14421442 query : invpkg.InvoiceQuery {
14431443 IndexOffset : 20 ,
14441444 NumMaxInvoices : numInvoices ,
1445- CreationDateEnd : time . Unix ( 30 , 0 ) ,
1445+ CreationDateEnd : 30 ,
14461446 },
14471447 // Since we're skipping to invoice 20 and iterating
14481448 // to invoice 30, we'll expect those invoices.
@@ -1455,7 +1455,7 @@ func TestQueryInvoices(t *testing.T) {
14551455 IndexOffset : 21 ,
14561456 Reversed : true ,
14571457 NumMaxInvoices : numInvoices ,
1458- CreationDateStart : time . Unix ( 11 , 0 ) ,
1458+ CreationDateStart : 11 ,
14591459 },
14601460 // Since we're skipping to invoice 20 and iterating
14611461 // backward to invoice 10, we'll expect those invoices.
@@ -1465,8 +1465,8 @@ func TestQueryInvoices(t *testing.T) {
14651465 {
14661466 query : invpkg.InvoiceQuery {
14671467 NumMaxInvoices : numInvoices ,
1468- CreationDateStart : time . Unix ( 11 , 0 ) ,
1469- CreationDateEnd : time . Unix ( 20 , 0 ) ,
1468+ CreationDateStart : 11 ,
1469+ CreationDateEnd : 20 ,
14701470 },
14711471 expected : invoices [10 :20 ],
14721472 },
@@ -1475,8 +1475,8 @@ func TestQueryInvoices(t *testing.T) {
14751475 query : invpkg.InvoiceQuery {
14761476 PendingOnly : true ,
14771477 NumMaxInvoices : numInvoices ,
1478- CreationDateStart : time . Unix ( 11 , 0 ) ,
1479- CreationDateEnd : time . Unix ( 20 , 0 ) ,
1478+ CreationDateStart : 11 ,
1479+ CreationDateEnd : 20 ,
14801480 },
14811481 expected : pendingInvoices [5 :10 ],
14821482 },
@@ -1486,8 +1486,8 @@ func TestQueryInvoices(t *testing.T) {
14861486 query : invpkg.InvoiceQuery {
14871487 Reversed : true ,
14881488 NumMaxInvoices : numInvoices ,
1489- CreationDateStart : time . Unix ( 11 , 0 ) ,
1490- CreationDateEnd : time . Unix ( 20 , 0 ) ,
1489+ CreationDateStart : 11 ,
1490+ CreationDateEnd : 20 ,
14911491 },
14921492 expected : invoices [10 :20 ],
14931493 },
@@ -1498,8 +1498,8 @@ func TestQueryInvoices(t *testing.T) {
14981498 PendingOnly : true ,
14991499 Reversed : true ,
15001500 NumMaxInvoices : numInvoices ,
1501- CreationDateStart : time . Unix ( 11 , 0 ) ,
1502- CreationDateEnd : time . Unix ( 20 , 0 ) ,
1501+ CreationDateStart : 11 ,
1502+ CreationDateEnd : 20 ,
15031503 },
15041504 expected : pendingInvoices [5 :10 ],
15051505 },
@@ -1508,8 +1508,8 @@ func TestQueryInvoices(t *testing.T) {
15081508 {
15091509 query : invpkg.InvoiceQuery {
15101510 NumMaxInvoices : numInvoices ,
1511- CreationDateStart : time . Unix ( 20 , 0 ) ,
1512- CreationDateEnd : time . Unix ( 11 , 0 ) ,
1511+ CreationDateStart : 20 ,
1512+ CreationDateEnd : 11 ,
15131513 },
15141514 expected : nil ,
15151515 },
0 commit comments