@@ -499,7 +499,6 @@ func TestGetSeriesCachedStore(t *testing.T) {
499
499
metrics := mdata .NewAggMetrics (store , & cache.MockCache {}, false , 0 , 0 , 0 )
500
500
srv .BindMemoryStore (metrics )
501
501
metric := test .GetAMKey (1 )
502
- var c * cache.CCache
503
502
var itgen * chunk.IterGen
504
503
var prevts uint32
505
504
@@ -527,7 +526,7 @@ func TestGetSeriesCachedStore(t *testing.T) {
527
526
}
528
527
529
528
// going through all testcases
530
- for _ , tc := range testcases {
529
+ for j , tc := range testcases {
531
530
fmt .Println ("TESTCASE" , tc )
532
531
pattern := tc .Pattern
533
532
@@ -541,12 +540,16 @@ func TestGetSeriesCachedStore(t *testing.T) {
541
540
// and various ranges between
542
541
// we increment from and to in thirds of a span,
543
542
// because incrementing by 1 would be needlessly expensive
544
- step := span / 3
543
+ step := span / 2
544
+ i := 0
545
545
for from := start ; from <= lastTs ; from += step {
546
546
for to := from ; to <= lastTs ; to += step {
547
- fmt .Println (from , to )
547
+ if j == 7 && i % 20 == 0 {
548
+ fmt .Println (">" , i )
549
+ }
550
+ i ++
548
551
// use fresh store and cache
549
- c = cache .NewCCache ()
552
+ c : = cache .NewCCache ()
550
553
srv .BindCache (c )
551
554
store .Reset ()
552
555
@@ -591,7 +594,7 @@ func TestGetSeriesCachedStore(t *testing.T) {
591
594
// we use the tsTracker to increase together with the iterators and compare at each step
592
595
tsTracker := expectResFrom
593
596
594
- tsSlice := make ( []uint32 , 0 )
597
+ var tsSlice []uint32
595
598
for i , it := range iters {
596
599
for it .Next () {
597
600
ts , _ := it .Values ()
@@ -676,8 +679,8 @@ func TestGetSeriesCachedStore(t *testing.T) {
676
679
c .Stop ()
677
680
}
678
681
}
682
+ fmt .Println ("DID" , i , "iterations" )
679
683
}
680
- fmt .Println ("all done" )
681
684
}
682
685
683
686
func TestGetSeriesAggMetrics (t * testing.T ) {
0 commit comments