From 87f6acb0b5e291f1b59b2b007a5c2226a6d2362f Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 22 Jun 2013 10:42:36 +0200 Subject: Return after sending message when sending is supported. --- tests/net/smtp/SMTPTransportTest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/net/smtp/SMTPTransportTest.cpp b/tests/net/smtp/SMTPTransportTest.cpp index e1c32a9a..c91ffe90 100644 --- a/tests/net/smtp/SMTPTransportTest.cpp +++ b/tests/net/smtp/SMTPTransportTest.cpp @@ -211,6 +211,7 @@ public: else if (cmd == "MAIL") { VASSERT("Client must send the HELO command", m_heloSent); + VASSERT("The MAIL command must be sent only one time", !m_mailSent); VASSERT_EQ("MAIL", std::string("MAIL FROM:"), line); @@ -399,6 +400,8 @@ public: } else if (cmd == "MAIL") { + VASSERT("The MAIL command must be sent only one time", !m_mailSent); + localSend("250 OK\r\n"); m_mailSent = true; -- cgit v1.2.3