Removed test as it is invalid.
This commit is contained in:
parent
3ae83c9cf9
commit
66f3c68a6c
@ -34,7 +34,6 @@ VMIME_TEST_SUITE_BEGIN(SMTPResponseTest)
|
|||||||
VMIME_TEST(testMultiLineResponse)
|
VMIME_TEST(testMultiLineResponse)
|
||||||
VMIME_TEST(testMultiLineResponseDifferentCode)
|
VMIME_TEST(testMultiLineResponseDifferentCode)
|
||||||
VMIME_TEST(testIncompleteMultiLineResponse)
|
VMIME_TEST(testIncompleteMultiLineResponse)
|
||||||
VMIME_TEST(testIntermediateResponse)
|
|
||||||
VMIME_TEST(testNoResponseText)
|
VMIME_TEST(testNoResponseText)
|
||||||
VMIME_TEST_LIST_END
|
VMIME_TEST_LIST_END
|
||||||
|
|
||||||
@ -151,28 +150,6 @@ VMIME_TEST_SUITE_BEGIN(SMTPResponseTest)
|
|||||||
vmime::exceptions::operation_timed_out);
|
vmime::exceptions::operation_timed_out);
|
||||||
}
|
}
|
||||||
|
|
||||||
void testIntermediateResponse()
|
|
||||||
{
|
|
||||||
vmime::ref <testSocket> socket = vmime::create <testSocket>();
|
|
||||||
vmime::ref <vmime::net::timeoutHandler> toh =
|
|
||||||
vmime::create <testTimeoutHandler>(1);
|
|
||||||
|
|
||||||
socket->localSend
|
|
||||||
(
|
|
||||||
"334\r\n"
|
|
||||||
"More information\r\n"
|
|
||||||
);
|
|
||||||
|
|
||||||
vmime::net::smtp::SMTPResponse::state responseState;
|
|
||||||
|
|
||||||
vmime::ref <vmime::net::smtp::SMTPResponse> resp =
|
|
||||||
vmime::net::smtp::SMTPResponse::readResponse(socket, toh, responseState);
|
|
||||||
|
|
||||||
VASSERT_EQ("Code", 334, resp->getCode());
|
|
||||||
VASSERT_EQ("Lines", 1, resp->getLineCount());
|
|
||||||
VASSERT_EQ("Text", "More information", resp->getText());
|
|
||||||
}
|
|
||||||
|
|
||||||
void testNoResponseText()
|
void testNoResponseText()
|
||||||
{
|
{
|
||||||
vmime::ref <testSocket> socket = vmime::create <testSocket>();
|
vmime::ref <testSocket> socket = vmime::create <testSocket>();
|
||||||
|
Loading…
Reference in New Issue
Block a user