Skip to content

Commit f978570

Browse files
committed
Add group test and fix failure
Signed-off-by: Filip Petkovski <[email protected]>
1 parent 39345f5 commit f978570

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

engine/engine_test.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,10 +1103,17 @@ func TestQueriesAgainstOldEngine(t *testing.T) {
11031103
{
11041104
name: "group",
11051105
load: `load 30s
1106-
http_requests_total{pod="nginx-1"} 1+1x15
1107-
http_requests_total{pod="nginx-2"} 1+2x18`,
1106+
http_requests_total{pod="nginx-1"} 2+1x15
1107+
http_requests_total{pod="nginx-2"} 2+2x18`,
11081108
query: `group(http_requests_total)`,
11091109
},
1110+
{
1111+
name: "group by ",
1112+
load: `load 30s
1113+
http_requests_total{pod="nginx-1"} 2+1x15
1114+
http_requests_total{pod="nginx-2"} 2+2x18`,
1115+
query: `group by (pod) (http_requests_total)`,
1116+
},
11101117
{
11111118
name: "resets",
11121119
load: `load 30s

0 commit comments

Comments
 (0)