summaryrefslogtreecommitdiff
path: root/test/e2e/search_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-03 09:10:53 -0400
committerGitHub <noreply@github.com>2020-08-03 09:10:53 -0400
commitde5eb3831190262169eab36e64c41992dc22766a (patch)
tree66594f108877fa59012ba371fb19474bb6aa6d4e /test/e2e/search_test.go
parent41358f5ea06062f1e1b80bd29802ea5d51cfe3b1 (diff)
parentfef3e2da6a2024fff5142b5df80aba36e895ed73 (diff)
downloadpodman-de5eb3831190262169eab36e64c41992dc22766a.tar.gz
podman-de5eb3831190262169eab36e64c41992dc22766a.tar.bz2
podman-de5eb3831190262169eab36e64c41992dc22766a.zip
Merge pull request #7191 from openSUSE/printf
Remove some unnecessary []byte to string conversions
Diffstat (limited to 'test/e2e/search_test.go')
-rw-r--r--test/e2e/search_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/search_test.go b/test/e2e/search_test.go
index 104bb4ec8..c6766fe2a 100644
--- a/test/e2e/search_test.go
+++ b/test/e2e/search_test.go
@@ -103,7 +103,7 @@ registries = ['{{.Host}}:{{.Port}}']`
search := podmanTest.Podman([]string{"search", "quay.io/libpod/whalesay"})
search.WaitWithDefaultTimeout()
Expect(search.ExitCode()).To(Equal(0))
- output := fmt.Sprintf("%s", search.Out.Contents())
+ output := string(search.Out.Contents())
match, _ := regexp.MatchString(`(?m)^quay.io\s+quay.io/libpod/whalesay\s+Static image used for automated testing.+$`, output)
Expect(match).To(BeTrue())
})