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

Skip to content
Commit a2957eab authored by Alec Mouri's avatar Alec Mouri
Browse files

Fix flaky RefreshRateStatsTests

* Replace ASSERT_* with EXPECT_* so that tests no longer fail fast when
an expectation is not met.
* Remove initial assertion for screen off times, as metrics can tick
before the initial stats flush.
* Store relevant prior metrics for assertions after config/power mode
changes.

Bug: 124318277
Test: atest libsurfaceflinger_unittest --serial 92JBA03174 --
--module-arg
libsurfaceflinger_unittest:native-test-flag:--gtest_repeat=10000
--module-arg
libsurfaceflinger_unittest:native-test-flag:--gtest_filter=RefreshRateStatsTest*
Change-Id: I4670b5f86667977484d55980252ae765b5108efe
parent 5e1371af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment