diff options
author | Robin Jacob <robinjacob@google.com> | 2020-06-15 17:48:15 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-06-15 17:48:15 +0000 |
commit | 3d5ea8a75722cd9a99787c8d86375afeaa411691 (patch) | |
tree | 8b4c292b42c51de63f11d62b33d3452677b34744 /biometrics | |
parent | 2091c05491431c2b571d0378955247b93dd531d4 (diff) | |
parent | ad15d6c05ad370278d3088e1a577e3f569a340d0 (diff) | |
download | platform_hardware_interfaces-3d5ea8a75722cd9a99787c8d86375afeaa411691.tar.gz platform_hardware_interfaces-3d5ea8a75722cd9a99787c8d86375afeaa411691.tar.bz2 platform_hardware_interfaces-3d5ea8a75722cd9a99787c8d86375afeaa411691.zip |
Merge "Add a delay between tests to make them more robust" into rvc-dev am: ad15d6c05a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11392730
Change-Id: Ic34a9f77830bca7bedae3777450b6cc5ddc439ec
Diffstat (limited to 'biometrics')
-rw-r--r-- | biometrics/face/1.0/vts/functional/VtsHalBiometricsFaceV1_0TargetTest.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/biometrics/face/1.0/vts/functional/VtsHalBiometricsFaceV1_0TargetTest.cpp b/biometrics/face/1.0/vts/functional/VtsHalBiometricsFaceV1_0TargetTest.cpp index 7ac44a4159..78f93af0d3 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 @@ 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; |