Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit b99a0fd

Browse files
committed
update tests
1 parent 0a59537 commit b99a0fd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mdata/aggmetric_test.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (c *Checker) Verify(primary bool, from, to, first, last uint32) {
7777
}
7878
for pj = pi; c.points[pj].ts != last; pj++ {
7979
}
80-
c.t.Logf("verifying AggMetric.Get(%d,%d) =?= %d <= ts <= %d", from, to, first, last)
80+
c.t.Logf("verifying AggMetric.Get(%d,%d) -> range is %d - %d ?", from, to, first, last)
8181
index := pi - 1
8282
for _, iter := range res.Iters {
8383
for iter.Next() {
@@ -182,9 +182,7 @@ func TestAggMetric(t *testing.T) {
182182
c.Add(200, 200)
183183
c.Add(315, 315)
184184
c.Verify(true, 100, 399, 101, 315)
185-
186-
// verify as secondary node. Data from the first chunk should not be returned.
187-
c.Verify(false, 100, 399, 200, 315)
185+
c.Verify(false, 100, 399, 101, 315)
188186

189187
// get subranges
190188
c.Verify(true, 120, 299, 101, 200)

0 commit comments

Comments
 (0)