@@ -42,8 +42,9 @@ func TestDockerCLIContainerLister(t *testing.T) {
42
42
ID : res .Container .ID ,
43
43
// For some reason, ory/dockertest pre-pends a forward slash to the container name.
44
44
FriendlyName : strings .TrimPrefix (res .Container .Name , "/" ),
45
- Image : res .Container .Image ,
46
- Labels : res .Container .Config .Labels ,
45
+ // ory/dockertest returns the sha256 digest of the image.
46
+ Image : "busybox:latest" ,
47
+ // Labels: res.Container.Config.Labels, // unused
47
48
}
48
49
dcl := dockerCLIContainerLister {}
49
50
ctx := testutil .Context (t , testutil .WaitShort )
@@ -56,8 +57,7 @@ func TestDockerCLIContainerLister(t *testing.T) {
56
57
assert .Equal (t , expectedCt .CreatedAt , ct .CreatedAt )
57
58
assert .Equal (t , expectedCt .FriendlyName , ct .FriendlyName )
58
59
assert .Equal (t , expectedCt .ID , ct .ID )
59
- // Docker returns the sha256 digest of the image.
60
- // assert.Equal(t, expectedCt.Image, ct.Image)
60
+ assert .Equal (t , expectedCt .Image , ct .Image )
61
61
break
62
62
}
63
63
}
0 commit comments