From 0ae1d8889abd7a8bd2d5336d80bc74b53da94b6f Mon Sep 17 00:00:00 2001 From: Bjoern Rabenstein Date: Mon, 24 Nov 2014 20:12:58 +0100 Subject: [PATCH] Fix tests after merge. Change-Id: Ia90da9a3e48ed780ec38c4a6a1fd9ea34e7f6a58 --- rules/rules_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rules/rules_test.go b/rules/rules_test.go index d93f6218f..094965255 100644 --- a/rules/rules_test.go +++ b/rules/rules_test.go @@ -569,8 +569,8 @@ func TestExpressions(t *testing.T) { // Test alternative "by"-clause order. expr: `sum by (group) (http_requests{job="api-server"})`, output: []string{ - `http_requests{group="canary"} => 700 @[%v]`, - `http_requests{group="production"} => 300 @[%v]`, + `{group="canary"} => 700 @[%v]`, + `{group="production"} => 300 @[%v]`, }, fullRanges: 0, intervalRanges: 4, @@ -579,8 +579,8 @@ func TestExpressions(t *testing.T) { // Test alternative "by"-clause order with "keeping_extra". expr: `sum by (group) keeping_extra (http_requests{job="api-server"})`, output: []string{ - `http_requests{group="canary", job="api-server"} => 700 @[%v]`, - `http_requests{group="production", job="api-server"} => 300 @[%v]`, + `{group="canary", job="api-server"} => 700 @[%v]`, + `{group="production", job="api-server"} => 300 @[%v]`, }, fullRanges: 0, intervalRanges: 4, @@ -591,7 +591,7 @@ func TestExpressions(t *testing.T) { // in an organization), or risk serious user confusion. expr: `sum(sum by (group) keeping_extra (http_requests{job="api-server"})) by (job)`, output: []string{ - `http_requests{job="api-server"} => 1000 @[%v]`, + `{job="api-server"} => 1000 @[%v]`, }, fullRanges: 0, intervalRanges: 4,