Fix sporadic fail in ULT

Change-Id: I8b8c67d4ea1189f1895c8d606e4afd745933f0e9
This commit is contained in:
Dunajski, Bartosz
2018-03-23 14:44:06 +01:00
committed by sys_ocldev
parent cf692afcfe
commit 656fc9beff

View File

@@ -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);
}