summaryrefslogtreecommitdiff
path: root/test/e2e/search_test.go
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2020-08-03 09:13:04 +0200
committerSascha Grunert <sgrunert@suse.com>2020-08-03 09:13:04 +0200
commitfef3e2da6a2024fff5142b5df80aba36e895ed73 (patch)
tree5eb2d1ec59719abd82b9114e0c30ae518e444a76 /test/e2e/search_test.go
parentbfd34542f463b7ea59b9560516b3b3d66674eefe (diff)
downloadpodman-fef3e2da6a2024fff5142b5df80aba36e895ed73.tar.gz
podman-fef3e2da6a2024fff5142b5df80aba36e895ed73.tar.bz2
podman-fef3e2da6a2024fff5142b5df80aba36e895ed73.zip
Remove some unnecessary []byte to string conversions
Some calls to `Sprintf("%s")` can be avoided by using direct string type assertions. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
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())
})