From 85d776c8b86588a84f98cc38c03a89927d794503 Mon Sep 17 00:00:00 2001 From: Rahul Frias Date: Mon, 21 Mar 2016 15:29:08 -0700 Subject: [PATCH] Address SessionSharingTest failures from WV request_license_test [ Merge of http://go/wvgerrit/17204 ] Sleep was being employed, to introduce a delay so that one license expired but the other was still active. The duration was long enough that occasionally the second license would also expire, causing the test to fail. Reduce the sleep duration to correct this behaviour. b/27673513 Change-Id: Ieef9100c98783c16fc5ab8fe345fa1dd26604f18 --- libwvdrmengine/cdm/test/request_license_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libwvdrmengine/cdm/test/request_license_test.cpp b/libwvdrmengine/cdm/test/request_license_test.cpp index f55ad74f..68a070ab 100644 --- a/libwvdrmengine/cdm/test/request_license_test.cpp +++ b/libwvdrmengine/cdm/test/request_license_test.cpp @@ -3069,7 +3069,7 @@ TEST_F(WvCdmRequestLicenseTest, SessionSharingTest) { EXPECT_EQ(NO_ERROR, decryptor_.Decrypt(session_id1, data->validate_key_id, decryption_parameters)); - sleep(2*kSingleEncryptedSubSampleIcpLicenseExpirationWindow); + sleep(kSingleEncryptedSubSampleIcpLicenseExpirationWindow); // session 1 will be expired, shared session 3 will be used to decrypt EXPECT_EQ(NO_ERROR, decryptor_.Decrypt(session_id1, data->validate_key_id, decryption_parameters));