@@ -35,7 +35,7 @@ func TestGroupByExistingKey(t *testing.T) {
3535	assert .Len (t , groups , 2 )
3636	assert .Len (t , groups ["demo1.localhost" ], 2 )
3737	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 )
3939}
4040
4141func  TestGroupByAfterWhere (t  * testing.T ) {
@@ -69,7 +69,7 @@ func TestGroupByAfterWhere(t *testing.T) {
6969	assert .Len (t , groups , 2 )
7070	assert .Len (t , groups ["demo1.localhost" ], 1 )
7171	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 )
7373}
7474
7575func  TestGroupByKeys (t  * testing.T ) {
@@ -149,7 +149,7 @@ func TestGroupByLabel(t *testing.T) {
149149	assert .Len (t , groups ["one" ], 2 )
150150	assert .Len (t , groups ["" ], 1 )
151151	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 )
153153}
154154
155155func  TestGroupByLabelError (t  * testing.T ) {
@@ -193,13 +193,13 @@ func TestGroupByMulti(t *testing.T) {
193193	if  len (groups ["demo2.localhost" ]) !=  1  {
194194		t .Fatalf ("expected 1 got %d" , len (groups ["demo2.localhost" ]))
195195	}
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 )
198198	}
199199	if  len (groups ["demo3.localhost" ]) !=  1  {
200200		t .Fatalf ("expect 1 got %d" , len (groups ["demo3.localhost" ]))
201201	}
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 )
204204	}
205205}
0 commit comments