Skip to content

Commit 828bcb2

Browse files
committed
[ci skip] tighten up test
1 parent adb3b5f commit 828bcb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

agent/containers_internal_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ func TestDockerCLIContainerLister(t *testing.T) {
4242
ID: res.Container.ID,
4343
// For some reason, ory/dockertest pre-pends a forward slash to the container name.
4444
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
4748
}
4849
dcl := dockerCLIContainerLister{}
4950
ctx := testutil.Context(t, testutil.WaitShort)
@@ -56,8 +57,7 @@ func TestDockerCLIContainerLister(t *testing.T) {
5657
assert.Equal(t, expectedCt.CreatedAt, ct.CreatedAt)
5758
assert.Equal(t, expectedCt.FriendlyName, ct.FriendlyName)
5859
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)
6161
break
6262
}
6363
}

0 commit comments

Comments
 (0)