Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 105ac0f1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Use EXPECT_LE instead of EXPECT_LT for some iio sensors that do not...

Merge "Use EXPECT_LE instead of EXPECT_LT for some iio sensors that do not support runtime suspend."
parents 406a9614 d6ef4fb7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -351,11 +351,11 @@ class SensorsHidlTestBase : public testing::TestWithParam<std::string> {
                  minDelayAverageInterval / 10);

        // fastest rate sampling time is close to spec
        EXPECT_LT(std::abs(minDelayAverageInterval - minSamplingPeriodInNs),
        EXPECT_LE(std::abs(minDelayAverageInterval - minSamplingPeriodInNs),
                  minSamplingPeriodInNs / 10);

        // slowest rate sampling time is close to spec
        EXPECT_LT(std::abs(maxDelayAverageInterval - maxSamplingPeriodInNs),
        EXPECT_LE(std::abs(maxDelayAverageInterval - maxSamplingPeriodInNs),
                  maxSamplingPeriodInNs / 10);
    }