diff --git a/sigar_shared_test.go b/sigar_shared_test.go index 9e7190b07..22b1786c5 100644 --- a/sigar_shared_test.go +++ b/sigar_shared_test.go @@ -48,7 +48,8 @@ var _ = Describe("SigarShared", func() { err := pCpu.Get(cpuGenerator.Process.Pid) Expect(err).ToNot(HaveOccurred()) - Expect(pCpu.Percent).To(BeNumerically("~", 1.0, 0.1)) + Expect(pCpu.Percent).To(BeNumerically(">=", 0.9)) + Expect(pCpu.Percent).To(BeNumerically("<=", 1.1)) }) It("does not conflate multiple processes", func() {