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

Commit 744b0288 authored by Ilya Matyukhin's avatar Ilya Matyukhin
Browse files

Reduce the number of iterations in PreEnrollTest

The current number of iterations is too high and results in a timeout
from the testing framework.

The goal of the test is to make sure that the generated challenges are
different on every run. It's impossible to test whether any two
challenges will ever be the same for any number of iterations. Hence,
since a 1000 iterations doesn't provide much more value over 10
iterations, 10 was chosen because of its better performance.

Bug: 155844206
Test: "atest VtsHalBiometricsFingerprintV2_1TargetTest" on a blueline
Change-Id: I5db887bdcfed8fb0e44fcedcf9e99dd185d395c3
parent ac4ee962
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ static const uint32_t kTimeout = 3;
static const std::chrono::seconds kTimeoutInSeconds = std::chrono::seconds(kTimeout);
static const uint32_t kGroupId = 99;
static std::string kTmpDir = "";
static const uint32_t kIterations = 1000;
static const uint32_t kIterations = 10;

// Wait for a callback to occur (signaled by the given future) up to the
// provided timeout. If the future is invalid or the callback does not come