summaryrefslogtreecommitdiff
path: root/test/e2e/stats_test.go
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-12-01 08:59:05 -0700
committerEd Santiago <santiago@redhat.com>2021-12-02 07:54:53 -0700
commiteb1212bed933174a9b55f09b43f0cd3e1636c14d (patch)
tree0a7fa74911a51ca9e186d3c8c8a827b9b3382336 /test/e2e/stats_test.go
parentc0a8814fb4d55a950ebf2b2c48731ac939318d7e (diff)
downloadpodman-eb1212bed933174a9b55f09b43f0cd3e1636c14d.tar.gz
podman-eb1212bed933174a9b55f09b43f0cd3e1636c14d.tar.bz2
podman-eb1212bed933174a9b55f09b43f0cd3e1636c14d.zip
Same thing, with BeNumerically("==", x)
sed -i -e 's/Expect(len(\(.*\)))\.To(BeNumerically("==", \(.*\)))/Expect(\1).To(HaveLen(\2))/' test/e2e/*.go Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/e2e/stats_test.go')
-rw-r--r--test/e2e/stats_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/stats_test.go b/test/e2e/stats_test.go
index a58e2485c..83a4896d5 100644
--- a/test/e2e/stats_test.go
+++ b/test/e2e/stats_test.go
@@ -213,7 +213,7 @@ var _ = Describe("Podman stats", func() {
// We have three containers. The unlimited ones need to have
// the same limit, the limited one a lower one.
limits := session.OutputToStringArray()
- Expect(len(limits)).To(BeNumerically("==", 3))
+ Expect(limits).To(HaveLen(3))
Expect(limits[0]).To(Equal(limits[1]))
Expect(limits[0]).ToNot(Equal(limits[2]))