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

Commit

Permalink
Merge pull request #1610 from grafana/1601-test-fix
Browse files Browse the repository at this point in the history
Test fix for #1601
  • Loading branch information
replay authored Jan 16, 2020
2 parents 46555c8 + 97020c3 commit 728c1dd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions mdata/importer/converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,13 @@ func TestPointsConversionWithoutAnyChange(t *testing.T) {
},
}

expected0 := map[schema.Method][]whisper.Point{
schema.Sum: inputPoints[0],
}
expected1 := map[schema.Method][]whisper.Point{
schema.Sum: inputPoints[1],
}

c := converter{
archives: []whisper.ArchiveInfo{
{SecondsPerPoint: 1, Points: 4},
Expand All @@ -1385,6 +1392,6 @@ func TestPointsConversionWithoutAnyChange(t *testing.T) {

points1 := c.getPoints(0, 1, 4)
points2 := c.getPoints(0, 2, 4)
verifyPointMaps(t, points1, inputPoints[0])
verifyPointMaps(t, points2, inputPoints[1])
verifyPointMaps(t, points1, expected0)
verifyPointMaps(t, points2, expected1)
}

0 comments on commit 728c1dd

Please sign in to comment.