Add more slack to timing tests
Merge from Widevine repo of http://go/wvgerrit/24042 This CL adjusts the tolerance in tests that check the license_received time. This was periodically failing because a nonce flood might delay the test by 1 second, which was being rounded up to 2. The tolerance is now 3. The time is explicily used when it is available. Some extra logging is also added to the mock. bug:31458046 Change-Id: I450880cb3cd8bd5ef66cba13b94dd963d2663d9a
This commit is contained in:
@@ -4801,7 +4801,7 @@ TEST_P(UsageTableTestWithMAC, ReloadOfflineLicenseWithRefresh) {
|
||||
ASSERT_NO_FATAL_FAILURE(s.ReloadUsageEntry());
|
||||
ASSERT_NO_FATAL_FAILURE(s.LoadTestKeys(pst, new_mac_keys_));
|
||||
ASSERT_NO_FATAL_FAILURE(s.UpdateUsageEntry(&encrypted_usage_header_));
|
||||
ASSERT_NO_FATAL_FAILURE(s.GenerateVerifyReport(pst, kUnused));
|
||||
ASSERT_NO_FATAL_FAILURE(s.GenerateVerifyReport(pst, kUnused, loaded, 0, 0));
|
||||
ASSERT_NO_FATAL_FAILURE(s.TestDecryptCTR());
|
||||
time_t decrypt_time = time(NULL);
|
||||
ASSERT_NO_FATAL_FAILURE(s.UpdateUsageEntry(&encrypted_usage_header_));
|
||||
|
||||
Reference in New Issue
Block a user