Fix failure status bug: when status is failure, request should be stopped
Change-Id: I699d9ae6bdc34ac67d9a8b3c69e9d789f9709c6d
diff --git a/tests/unit-tests/challenge-email.t.cpp b/tests/unit-tests/challenge-email.t.cpp
index c53e47e..ad3ef83 100644
--- a/tests/unit-tests/challenge-email.t.cpp
+++ b/tests/unit-tests/challenge-email.t.cpp
@@ -30,7 +30,7 @@
BOOST_AUTO_TEST_CASE(TestChallengeType)
{
ChallengeEmail challenge;
- BOOST_CHECK_EQUAL(challenge.CHALLENGE_TYPE, "EMAIL");
+ BOOST_CHECK_EQUAL(challenge.CHALLENGE_TYPE, "Email");
}
BOOST_AUTO_TEST_CASE(ParseStoredSecret)
@@ -75,7 +75,7 @@
challenge.handleChallengeRequest(interest, request);
BOOST_CHECK_EQUAL(request.getStatus(), ChallengeEmail::NEED_CODE);
- BOOST_CHECK_EQUAL(request.getChallengeType(), "EMAIL");
+ BOOST_CHECK_EQUAL(request.getChallengeType(), "Email");
}
BOOST_AUTO_TEST_CASE(OnSelectInterestComingWithInvalidEmail)
@@ -99,7 +99,7 @@
challenge.handleChallengeRequest(interest, request);
BOOST_CHECK_EQUAL(request.getStatus(), ChallengeEmail::FAILURE_INVALID_EMAIL);
- BOOST_CHECK_EQUAL(request.getChallengeType(), "EMAIL");
+ BOOST_CHECK_EQUAL(request.getChallengeType(), "Email");
}
BOOST_AUTO_TEST_CASE(OnValidateInterestComingWithCode)