Merge "Add a delay between tests to make them more robust" into rvc-dev
This commit is contained in:
commit
ad15d6c05a
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue