diff options
author | Ji Soo Shin <jisshin@google.com> | 2019-05-17 12:42:14 -0700 |
---|---|---|
committer | Ji Soo Shin <jisshin@google.com> | 2019-05-17 12:44:42 -0700 |
commit | 74a5b3b35457a57973087804cca3555c9bab1111 (patch) | |
tree | f24a60d9332651f6c2906b3192e474b0e17bc999 | |
parent | cb5a400e0b27ca3d1add01ab18eec187103b62ab (diff) | |
download | system-test-harness-74a5b3b35457a57973087804cca3555c9bab1111.tar.gz |
faceauth_tests: fix flaky failure
User ID for profile 6 is not being generated, causing flaky test failure
for ValidProfileUserIDTest.
Bug: None
Test: bazel
Change-Id: Ic918a49ffa8eda4918b19b5455cd64fb11446e0f
Signed-off-by: Ji Soo Shin <jisshin@google.com>
-rw-r--r-- | src/faceauth_tests.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/faceauth_tests.cc b/src/faceauth_tests.cc index 32088fa..273cd5a 100644 --- a/src/faceauth_tests.cc +++ b/src/faceauth_tests.cc @@ -51,7 +51,7 @@ unique_ptr<test_harness::TestHarness> FaceAuthTest::uart_printer; void FaceAuthTest::SetUpTestCase() { srand(time(NULL)); - for (int i = 0; i < MAX_NUM_PROFILES; ++i) { + for (int i = 0; i <= MAX_NUM_PROFILES; ++i) { user_ids.push_back(rand()); } uart_printer = test_harness::TestHarness::MakeUnique(); |