summaryrefslogtreecommitdiff
path: root/libpod/image/pull_test.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2018-07-27 02:47:43 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-01 18:22:58 +0000
commit7c37b25b4d946855ef4e206f4b017a61f393b942 (patch)
treeecfbc07bf53d1f89e3b9f9087076af82864c1064 /libpod/image/pull_test.go
parent6ddf81f07dfc3a30fd426566559352072e9fcd6a (diff)
downloadpodman-7c37b25b4d946855ef4e206f4b017a61f393b942.tar.gz
podman-7c37b25b4d946855ef4e206f4b017a61f393b942.tar.bz2
podman-7c37b25b4d946855ef4e206f4b017a61f393b942.zip
Remove the error return value from getPullRefName
... it is always nil. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com> Closes: #1176 Approved by: rhatdan
Diffstat (limited to 'libpod/image/pull_test.go')
-rw-r--r--libpod/image/pull_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/libpod/image/pull_test.go b/libpod/image/pull_test.go
index 9305527d4..1552d568b 100644
--- a/libpod/image/pull_test.go
+++ b/libpod/image/pull_test.go
@@ -72,10 +72,9 @@ func TestGetPullRefName(t *testing.T) {
srcRef, err := alltransports.ParseImageName(c.srcName)
require.NoError(t, err, c.srcName)
- testName := fmt.Sprintf("%#v %#v", c.srcName, c.destName)
- res, err := getPullRefName(srcRef, c.destName)
- require.NoError(t, err, testName)
- assert.Equal(t, &pullRefName{image: c.expectedImage, srcRef: srcRef, dstName: c.expectedDstName}, res, testName)
+ res := getPullRefName(srcRef, c.destName)
+ assert.Equal(t, &pullRefName{image: c.expectedImage, srcRef: srcRef, dstName: c.expectedDstName}, res,
+ fmt.Sprintf("%#v %#v", c.srcName, c.destName))
}
}