aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_otp.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-11-07 12:41:45 -0500
committerJack Lloyd <[email protected]>2018-11-07 12:41:45 -0500
commit5c5eea40fd8d9900c8de170505086dce9d0389c6 (patch)
tree796e177ee6d01b46cc3e0314f33450209cff78c8 /src/tests/test_otp.cpp
parent18b5b3b18ebab341383943fd36ab3c822ed3a8b0 (diff)
Compile fix
Diffstat (limited to 'src/tests/test_otp.cpp')
-rw-r--r--src/tests/test_otp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_otp.cpp b/src/tests/test_otp.cpp
index 5c597e2a7..15cd2a9fb 100644
--- a/src/tests/test_otp.cpp
+++ b/src/tests/test_otp.cpp
@@ -122,7 +122,7 @@ class TOTP_KAT_Tests final : public Text_Based_Test
std::chrono::system_clock::time_point from_timestring(const std::string& time_str)
{
if(time_str.size() != 19)
- throw Invalid_Argument("Invalid TOTP timestamp string " + time_str);
+ throw Test_Error("Invalid TOTP timestamp string " + time_str);
// YYYY-MM-DDTHH:MM:SS
// 0123456789012345678
const uint32_t year = Botan::to_u32bit(time_str.substr(0, 4));