aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tests/unit_tls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp
index 11ec049d5..edc5e913d 100644
--- a/src/tests/unit_tls.cpp
+++ b/src/tests/unit_tls.cpp
@@ -237,7 +237,7 @@ size_t basic_test_handshake(RandomNumberGenerator& rng,
catch(std::exception& e)
{
std::cout << "Server error - " << e.what() << std::endl;
- break;
+ return 1;
}
input.clear();
@@ -250,7 +250,7 @@ size_t basic_test_handshake(RandomNumberGenerator& rng,
catch(std::exception& e)
{
std::cout << "Client error - " << e.what() << std::endl;
- break;
+ return 1;
}
if(c2s_data.size())