Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Change agg types in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
xichen2020 committed Jun 20, 2017
1 parent 2e6b56f commit 657d3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions policy/staged_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func TestPoliciesListJSONMarshaling(t *testing.T) {
false,
[]Policy{
NewPolicy(NewStoragePolicy(10*time.Second, xtime.Second, 6*time.Hour), DefaultAggregationID),
NewPolicy(NewStoragePolicy(time.Minute, xtime.Minute, 24*time.Hour), mustCompress(Lower, Upper)),
NewPolicy(NewStoragePolicy(time.Minute, xtime.Minute, 24*time.Hour), mustCompress(Count, Mean)),
},
),
NewStagedPolicies(
Expand All @@ -250,7 +250,7 @@ func TestPoliciesListJSONMarshaling(t *testing.T) {
[]Policy{},
),
},
expected: `[{"cutoverNanos":0,"tombstoned":false,"policies":["10s@1s:6h0m0s","1m0s@1m:24h0m0s|Lower,Upper"]},` +
expected: `[{"cutoverNanos":0,"tombstoned":false,"policies":["10s@1s:6h0m0s","1m0s@1m:24h0m0s|Mean,Count"]},` +
`{"cutoverNanos":100,"tombstoned":true,"policies":["10s@1s:6h0m0s|Sum"]},` +
`{"cutoverNanos":200,"tombstoned":false,"policies":[]}]`,
},
Expand Down

0 comments on commit 657d3df

Please sign in to comment.