From cfe09d0112c90dcfa7be32950aea1c39abb91325 Mon Sep 17 00:00:00 2001 From: jaedle Date: Fri, 1 Mar 2019 12:20:11 +0100 Subject: [PATCH] add power consumption to ingetration test --- test/integration/integration_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/integration_test.go b/test/integration/integration_test.go index 577804d..3a2f24f 100644 --- a/test/integration/integration_test.go +++ b/test/integration/integration_test.go @@ -18,5 +18,9 @@ var _ = Describe("Integration", func() { isOn, err = h.IsOn() Expect(err).NotTo(HaveOccurred()) Expect(isOn).To(BeTrue()) + + consumption, err := h.GetCurrentPowerConsumption() + Expect(err).NotTo(HaveOccurred()) + Expect(consumption).NotTo(BeZero()) }) })