commit | 8809bacb965ecb08fc177a120e264a4a92d58fb5 | [log] [tgz] |
---|---|---|
author | Robin Jacob <robinjacob@google.com> | Mon Jun 15 18:01:40 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jun 15 18:01:40 2020 +0000 |
tree | 904e38377a4820589aaa218e91e38c20f9dea2a3 | |
parent | 78cf85791b80a35ad49361cd2157659a0dcc22e4 [diff] | |
parent | 3d5ea8a75722cd9a99787c8d86375afeaa411691 [diff] |
Merge "Add a delay between tests to make them more robust" into rvc-dev am: ad15d6c05a am: 3d5ea8a757 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11392730 Change-Id: I2e2b90ec7e5e9de1ec07944eb6fc2a9ab34ea3c5
diff --git a/biometrics/face/1.0/vts/functional/VtsHalBiometricsFaceV1_0TargetTest.cpp b/biometrics/face/1.0/vts/functional/VtsHalBiometricsFaceV1_0TargetTest.cpp index 7ac44a4..78f93af 100644 --- a/biometrics/face/1.0/vts/functional/VtsHalBiometricsFaceV1_0TargetTest.cpp +++ b/biometrics/face/1.0/vts/functional/VtsHalBiometricsFaceV1_0TargetTest.cpp
@@ -28,6 +28,7 @@ #include <chrono> #include <cstdint> #include <random> +#include <thread> using android::sp; using android::hardware::hidl_vec; @@ -144,7 +145,10 @@ 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;