summaryrefslogtreecommitdiff
path: root/pkg/bindings/test/common_test.go
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2020-02-28 11:40:14 -0500
committerChris Evich <cevich@redhat.com>2020-02-28 11:44:16 -0500
commite95c493fec5cab6e487d73649641cec0c1567d2c (patch)
tree3df22ac232187324c2b5a53427b5910bb6162461 /pkg/bindings/test/common_test.go
parent04d9cee01a6eb1fe15402b2811b4df5980f0be7e (diff)
downloadpodman-e95c493fec5cab6e487d73649641cec0c1567d2c.tar.gz
podman-e95c493fec5cab6e487d73649641cec0c1567d2c.tar.bz2
podman-e95c493fec5cab6e487d73649641cec0c1567d2c.zip
Fix wrong condition in bindings test
Thanks for Brent Baude <bbaude@redhat.com> for the fix. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'pkg/bindings/test/common_test.go')
-rw-r--r--pkg/bindings/test/common_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/bindings/test/common_test.go b/pkg/bindings/test/common_test.go
index 38f5014ca..1fc774074 100644
--- a/pkg/bindings/test/common_test.go
+++ b/pkg/bindings/test/common_test.go
@@ -240,3 +240,7 @@ func createCache() {
}
b.cleanup()
}
+
+func isStopped(state string) bool {
+ return state == "exited" || state == "stopped"
+}