diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-01-29 18:53:05 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-01-29 18:53:05 +0100 |
commit | 6f35a5f98174a84bc4d96a98c37f66acc06f5b22 (patch) | |
tree | 1003fa4b52153e3b2b727ce1bc394435d2fc9187 /unittest/test_offline.cc | |
parent | fb74908ac898d40c75f5a6b25d19f25f63a7fb0b (diff) | |
download | libnitrokey-6f35a5f98174a84bc4d96a98c37f66acc06f5b22.tar.gz libnitrokey-6f35a5f98174a84bc4d96a98c37f66acc06f5b22.tar.bz2 |
Fix bug with different data read
Makes occasional fails
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_offline.cc')
-rw-r--r-- | unittest/test_offline.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc index 2d1fcb3..3ef63d2 100644 --- a/unittest/test_offline.cc +++ b/unittest/test_offline.cc @@ -115,7 +115,7 @@ TEST_CASE("Test helper function - hex_string_to_byte", "[fast]") { REQUIRE(v.size() == sizeof(test_data)); for (int i = 0; i < v.size(); ++i) { INFO("Position i: " << i); - REQUIRE(v.data()[i] == test_data[i]); + REQUIRE(v[i] == test_data[i]); } } |