@@ -263,10 +263,7 @@ func TestQuerySimple(t *testing.T) {
263
263
t .Errorf ("did not see wanted key %q in %+v" , myKey , entries )
264
264
}
265
265
266
- err = res .Close ()
267
- if err != nil {
268
- t .Errorf ("result.Close failed %d" , err )
269
- }
266
+ res .Close ()
270
267
}
271
268
272
269
func TestQueryAcrossMounts (t * testing.T ) {
@@ -307,10 +304,7 @@ func TestQueryAcrossMounts(t *testing.T) {
307
304
}
308
305
entries , err := res .Rest ()
309
306
if err != nil {
310
- err = res .Close ()
311
- if err != nil {
312
- t .Errorf ("result.Close failed %d" , err )
313
- }
307
+ res .Close ()
314
308
t .Fatalf ("Query Results.Rest fail: %v\n " , err )
315
309
}
316
310
if len (entries ) != len (values ) {
@@ -407,10 +401,7 @@ func TestQueryAcrossMountsWithSort(t *testing.T) {
407
401
}
408
402
}
409
403
410
- err = res .Close ()
411
- if err != nil {
412
- t .Errorf ("result.Close failed %d" , err )
413
- }
404
+ res .Close ()
414
405
}
415
406
416
407
func TestQueryLimitAcrossMountsWithSort (t * testing.T ) {
@@ -473,10 +464,7 @@ func TestQueryLimitAcrossMountsWithSort(t *testing.T) {
473
464
}
474
465
}
475
466
476
- err = res .Close ()
477
- if err != nil {
478
- t .Errorf ("result.Close failed %d" , err )
479
- }
467
+ res .Close ()
480
468
}
481
469
482
470
func TestQueryLimitAndOffsetAcrossMountsWithSort (t * testing.T ) {
@@ -540,10 +528,7 @@ func TestQueryLimitAndOffsetAcrossMountsWithSort(t *testing.T) {
540
528
}
541
529
}
542
530
543
- err = res .Close ()
544
- if err != nil {
545
- t .Errorf ("result.Close failed %d" , err )
546
- }
531
+ res .Close ()
547
532
}
548
533
549
534
func TestQueryFilterAcrossMountsWithSort (t * testing.T ) {
@@ -606,10 +591,7 @@ func TestQueryFilterAcrossMountsWithSort(t *testing.T) {
606
591
}
607
592
}
608
593
609
- err = res .Close ()
610
- if err != nil {
611
- t .Errorf ("result.Close failed %d" , err )
612
- }
594
+ res .Close ()
613
595
}
614
596
615
597
func TestQueryLimitAndOffsetWithNoData (t * testing.T ) {
@@ -639,10 +621,7 @@ func TestQueryLimitAndOffsetWithNoData(t *testing.T) {
639
621
t .Fatalf ("expected %d entries, but got %d" , len (expect ), len (entries ))
640
622
}
641
623
642
- err = res .Close ()
643
- if err != nil {
644
- t .Errorf ("result.Close failed %d" , err )
645
- }
624
+ res .Close ()
646
625
}
647
626
648
627
func TestQueryLimitWithNotEnoughData (t * testing.T ) {
@@ -682,10 +661,7 @@ func TestQueryLimitWithNotEnoughData(t *testing.T) {
682
661
t .Fatalf ("expected %d entries, but got %d" , len (expect ), len (entries ))
683
662
}
684
663
685
- err = res .Close ()
686
- if err != nil {
687
- t .Errorf ("result.Close failed %d" , err )
688
- }
664
+ res .Close ()
689
665
}
690
666
691
667
func TestQueryOffsetWithNotEnoughData (t * testing.T ) {
@@ -722,10 +698,7 @@ func TestQueryOffsetWithNotEnoughData(t *testing.T) {
722
698
t .Fatalf ("expected %d entries, but got %d" , len (expect ), len (entries ))
723
699
}
724
700
725
- err = res .Close ()
726
- if err != nil {
727
- t .Errorf ("result.Close failed %d" , err )
728
- }
701
+ res .Close ()
729
702
}
730
703
731
704
func TestLookupPrio (t * testing.T ) {
0 commit comments