mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Add a delay between tests to make them more robust" into rvc-dev am: ad15d6c05a am: c04da2f2ab am: 38ae0b1a1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11392730 Change-Id: I50eeac5bad5bab0ed578ad9e14f323e33c4ad590
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
#include <random>
|
||||
#include <thread>
|
||||
|
||||
using android::sp;
|
||||
using android::hardware::hidl_vec;
|
||||
@@ -144,7 +145,10 @@ class FaceHidlTest : public ::testing::TestWithParam<std::string> {
|
||||
ASSERT_EQ(Status::OK, static_cast<Status>(ret2));
|
||||
}
|
||||
|
||||
void TearDown() override {}
|
||||
void TearDown() override {
|
||||
// Hack to allow the asynchronous operations to finish on time.
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(250));
|
||||
}
|
||||
|
||||
sp<IBiometricsFace> mService;
|
||||
sp<FaceCallback> mCallback;
|
||||
|
||||
Reference in New Issue
Block a user