Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92ecc482 authored by Ilya Matyukhin's avatar Ilya Matyukhin
Browse files

Add a delay between tests to make them more robust

Bug: 154342874
Test: atest VtsHalBiometricsFaceV1_0TargetTest
Change-Id: I09713b6814ecb9f4ee4a7f568b1f891a94f4e017
parent 9a3f5f02
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;