@@ -35,7 +35,7 @@ func TestGroupByExistingKey(t *testing.T) {
35
35
assert .Len (t , groups , 2 )
36
36
assert .Len (t , groups ["demo1.localhost" ], 2 )
37
37
assert .Len (t , groups ["demo2.localhost" ], 1 )
38
- assert .Equal (t , "3" , groups ["demo2.localhost" ][0 ].(context.RuntimeContainer ).ID )
38
+ assert .Equal (t , "3" , groups ["demo2.localhost" ][0 ].(* context.RuntimeContainer ).ID )
39
39
}
40
40
41
41
func TestGroupByAfterWhere (t * testing.T ) {
@@ -69,7 +69,7 @@ func TestGroupByAfterWhere(t *testing.T) {
69
69
assert .Len (t , groups , 2 )
70
70
assert .Len (t , groups ["demo1.localhost" ], 1 )
71
71
assert .Len (t , groups ["demo2.localhost" ], 1 )
72
- assert .Equal (t , "3" , groups ["demo2.localhost" ][0 ].(context.RuntimeContainer ).ID )
72
+ assert .Equal (t , "3" , groups ["demo2.localhost" ][0 ].(* context.RuntimeContainer ).ID )
73
73
}
74
74
75
75
func TestGroupByKeys (t * testing.T ) {
@@ -149,7 +149,7 @@ func TestGroupByLabel(t *testing.T) {
149
149
assert .Len (t , groups ["one" ], 2 )
150
150
assert .Len (t , groups ["" ], 1 )
151
151
assert .Len (t , groups ["two" ], 1 )
152
- assert .Equal (t , "2" , groups ["two" ][0 ].(context.RuntimeContainer ).ID )
152
+ assert .Equal (t , "2" , groups ["two" ][0 ].(* context.RuntimeContainer ).ID )
153
153
}
154
154
155
155
func TestGroupByLabelError (t * testing.T ) {
@@ -193,13 +193,13 @@ func TestGroupByMulti(t *testing.T) {
193
193
if len (groups ["demo2.localhost" ]) != 1 {
194
194
t .Fatalf ("expected 1 got %d" , len (groups ["demo2.localhost" ]))
195
195
}
196
- if groups ["demo2.localhost" ][0 ].(context.RuntimeContainer ).ID != "3" {
197
- t .Fatalf ("expected 2 got %s" , groups ["demo2.localhost" ][0 ].(context.RuntimeContainer ).ID )
196
+ if groups ["demo2.localhost" ][0 ].(* context.RuntimeContainer ).ID != "3" {
197
+ t .Fatalf ("expected 2 got %s" , groups ["demo2.localhost" ][0 ].(* context.RuntimeContainer ).ID )
198
198
}
199
199
if len (groups ["demo3.localhost" ]) != 1 {
200
200
t .Fatalf ("expect 1 got %d" , len (groups ["demo3.localhost" ]))
201
201
}
202
- if groups ["demo3.localhost" ][0 ].(context.RuntimeContainer ).ID != "2" {
203
- t .Fatalf ("expected 2 got %s" , groups ["demo3.localhost" ][0 ].(context.RuntimeContainer ).ID )
202
+ if groups ["demo3.localhost" ][0 ].(* context.RuntimeContainer ).ID != "2" {
203
+ t .Fatalf ("expected 2 got %s" , groups ["demo3.localhost" ][0 ].(* context.RuntimeContainer ).ID )
204
204
}
205
205
}
0 commit comments