summaryrefslogtreecommitdiff
path: root/test/e2e/create_test.go
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-12-01 10:02:35 -0700
committerEd Santiago <santiago@redhat.com>2021-12-02 07:54:53 -0700
commit6cb25b3d142e16cbfeb68ef98c54c4443ac842d2 (patch)
treeb91aff1b719bd7fe0080a64aee5f6886b8bac92f /test/e2e/create_test.go
parenteb1212bed933174a9b55f09b43f0cd3e1636c14d (diff)
downloadpodman-6cb25b3d142e16cbfeb68ef98c54c4443ac842d2.tar.gz
podman-6cb25b3d142e16cbfeb68ef98c54c4443ac842d2.tar.bz2
podman-6cb25b3d142e16cbfeb68ef98c54c4443ac842d2.zip
Manual fixes
Fix a handful of instances not covered by earlier automated replacements. Found via: ack 'Expect\(len' test/e2e There are still a bunch of BeNumerically(">", ...) that cannot (yet) be handled by HaveLen(). Leave those as they are. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/e2e/create_test.go')
-rw-r--r--test/e2e/create_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go
index 181628037..9126303cd 100644
--- a/test/e2e/create_test.go
+++ b/test/e2e/create_test.go
@@ -382,7 +382,7 @@ var _ = Describe("Podman create", func() {
inspect := podmanTest.Podman([]string{"inspect", ctrName})
inspect.WaitWithDefaultTimeout()
data := inspect.InspectContainerToJSON()
- Expect(len(data)).To(Equal(1), "len(InspectContainerToJSON)")
+ Expect(data).To(HaveLen(1), "len(InspectContainerToJSON)")
Expect(data[0].Config.Labels).To(HaveLen(2))
Expect(data[0].Config.Labels).To(HaveKey("TESTKEY1"))
Expect(data[0].Config.Labels).To(HaveKey("TESTKEY2"))