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

Commit f947777e authored by Garret Kelly's avatar Garret Kelly Committed by android-build-merger
Browse files

Merge "Increase leniency of attestation record timestamps" into qt-dev am:...

Merge "Increase leniency of attestation record timestamps" into qt-dev am: 6c4e33d0 am: 89fda5c7
am: 4684c6f4

Change-Id: I6a10db36c762a589cc04ac7bac7f01cec603f7d8
parents ca7a9f7e 4684c6f4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -216,8 +216,8 @@ void KeymasterHidlTest::CheckCreationDateTime(
                    std::chrono::system_clock::now();
            std::chrono::time_point<std::chrono::system_clock> reported_time{
                    std::chrono::milliseconds(sw_enforced[i].f.dateTime)};
            // The test is flaky for EC keys, so a buffer time of 1 second will be added.
            EXPECT_LE(creation - 1s, reported_time);
            // The test is flaky for EC keys, so a buffer time of 120 seconds will be added.
            EXPECT_LE(creation - 120s, reported_time);
            EXPECT_LE(reported_time, now + 1s);
        }
    }