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

Commit 7880ca4d authored by Ken Chen's avatar Ken Chen Committed by android-build-merger
Browse files

Fix false positive on res_stats checking in cache unit test

am: 8cfe5567

Change-Id: Ib3e31968778103031b13fcee4364e8a654bc7ad7
parents b2c13e0c 8cfe5567
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -215,6 +215,11 @@ class ResolvCacheTest : public ::testing::Test {
        EXPECT_TRUE(params == expected.setup.params) << msg;

        // res_stats checking.
        if (expected.stats.size() == 0) {
            for (int ns = 0; ns < nscount; ns++) {
                EXPECT_EQ(0U, stats[ns].sample_count) << msg;
            }
        }
        for (size_t i = 0; i < expected.stats.size(); i++) {
            EXPECT_TRUE(stats[i] == expected.stats[i]) << msg;
        }