summaryrefslogtreecommitdiff
path: root/pkg/bindings/test/common_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-04 09:46:24 -0500
committerGitHub <noreply@github.com>2021-03-04 09:46:24 -0500
commit87a78c059dc2fb72ba54805d5488f3e619ae46f1 (patch)
treea6c7ca6a504f71b1af2307fcdfbbae6787d73b6b /pkg/bindings/test/common_test.go
parent17cacea3fa2bf0df20572720b9a0a3be35f2ef7b (diff)
parentf86d64130838fbeb75ea2776a2f2b6c4a49e58b3 (diff)
downloadpodman-87a78c059dc2fb72ba54805d5488f3e619ae46f1.tar.gz
podman-87a78c059dc2fb72ba54805d5488f3e619ae46f1.tar.bz2
podman-87a78c059dc2fb72ba54805d5488f3e619ae46f1.zip
Merge pull request #9601 from jwhonce/issues/9207
Use version package to track all versions
Diffstat (limited to 'pkg/bindings/test/common_test.go')
-rw-r--r--pkg/bindings/test/common_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/bindings/test/common_test.go b/pkg/bindings/test/common_test.go
index 588f38930..9bac4b620 100644
--- a/pkg/bindings/test/common_test.go
+++ b/pkg/bindings/test/common_test.go
@@ -188,14 +188,14 @@ func (b *bindingTest) restoreImageFromCache(i testImage) {
// Run a container within or without a pod
// and add or append the alpine image to it
-func (b *bindingTest) RunTopContainer(containerName *string, insidePod *bool, podName *string) (string, error) {
+func (b *bindingTest) RunTopContainer(containerName *string, podName *string) (string, error) {
s := specgen.NewSpecGenerator(alpine.name, false)
s.Terminal = false
s.Command = []string{"/usr/bin/top"}
if containerName != nil {
s.Name = *containerName
}
- if insidePod != nil && podName != nil {
+ if podName != nil {
s.Pod = *podName
}
ctr, err := containers.CreateWithSpec(b.conn, s, nil)