From 656fc9beff22a6f0edb8d87235467a72f9369185 Mon Sep 17 00:00:00 2001 From: "Dunajski, Bartosz" Date: Fri, 23 Mar 2018 14:44:06 +0100 Subject: [PATCH] Fix sporadic fail in ULT Change-Id: I8b8c67d4ea1189f1895c8d606e4afd745933f0e9 --- unit_tests/helpers/kmd_notify_tests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unit_tests/helpers/kmd_notify_tests.cpp b/unit_tests/helpers/kmd_notify_tests.cpp index 23f910a65d..850d56b63f 100644 --- a/unit_tests/helpers/kmd_notify_tests.cpp +++ b/unit_tests/helpers/kmd_notify_tests.cpp @@ -165,6 +165,8 @@ HWTEST_F(KmdNotifyTests, givenNonQuickSleepRequestWhenItsSporadicWaitThenOverrid auto expectedDelay = device->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayQuickKmdSleepMicroseconds; EXPECT_CALL(*csr, waitForCompletionWithTimeout(::testing::_, expectedDelay, ::testing::_)).Times(1).WillOnce(::testing::Return(true)); + auto now = std::chrono::high_resolution_clock::now(); + csr->lastWaitForCompletionTimestamp = now - std::chrono::hours(24); csr->waitForTaskCountWithKmdNotifyFallback(taskCountToWait, 1, false); }