diff options
author | Ilya Matyukhin <ilyamaty@google.com> | 2020-06-02 17:56:07 -0700 |
---|---|---|
committer | Ilya Matyukhin <ilyamaty@google.com> | 2020-06-03 01:09:22 +0000 |
commit | 744b02880730ffcb1cf4dade6269e81819a4a5ba (patch) | |
tree | 60253a23d281f4463ca94dd482e53f44305b47d3 | |
parent | ac4ee9626849c00ac58da0c3f4be59a778e61de5 (diff) | |
download | platform_hardware_interfaces-744b02880730ffcb1cf4dade6269e81819a4a5ba.tar.gz platform_hardware_interfaces-744b02880730ffcb1cf4dade6269e81819a4a5ba.tar.bz2 platform_hardware_interfaces-744b02880730ffcb1cf4dade6269e81819a4a5ba.zip |
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
-rw-r--r-- | biometrics/fingerprint/2.1/vts/functional/VtsHalBiometricsFingerprintV2_1TargetTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/biometrics/fingerprint/2.1/vts/functional/VtsHalBiometricsFingerprintV2_1TargetTest.cpp b/biometrics/fingerprint/2.1/vts/functional/VtsHalBiometricsFingerprintV2_1TargetTest.cpp index bdbf72dea2..6093caaf04 100644 --- a/biometrics/fingerprint/2.1/vts/functional/VtsHalBiometricsFingerprintV2_1TargetTest.cpp +++ b/biometrics/fingerprint/2.1/vts/functional/VtsHalBiometricsFingerprintV2_1TargetTest.cpp @@ -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 |