From c4fb93647acec7d8e9cb97f8ee2efd7cf00a086c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Thu, 7 Jan 2021 17:35:42 +0100 Subject: [PATCH] Fix reading the after-sync list of tags in SyncSuite.TestYamlUntagged MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- integration/sync_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration/sync_test.go b/integration/sync_test.go index 61a23a28..1c24d6e9 100644 --- a/integration/sync_test.go +++ b/integration/sync_test.go @@ -262,7 +262,9 @@ docker.io: sysCtx = types.SystemContext{ DockerInsecureSkipTLSVerify: types.NewOptionalBool(true), } - localTags, err := docker.GetRepositoryTags(context.Background(), &sysCtx, imageRef) + localImageRef, err := docker.ParseReference(fmt.Sprintf("//%s/%s", v2DockerRegistryURL, imagePath)) + c.Assert(err, check.IsNil) + localTags, err := docker.GetRepositoryTags(context.Background(), &sysCtx, localImageRef) c.Assert(err, check.IsNil) c.Check(len(localTags), check.Not(check.Equals), 0) c.Assert(len(localTags), check.Equals, len(tags))