From 9682d15475485522812ac73ac10e283d11176f7e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 20 Sep 2018 18:04:09 -0400 Subject: [PATCH] LP#1703411 XMPP opensrf element make check repairs Update the transport_message unit tests to check for the new element for relaying custom commands. Signed-off-by: Bill Erickson Signed-off-by: Jason Stephenson Signed-off-by: Mike Rylander --- tests/check_transport_message.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/check_transport_message.c b/tests/check_transport_message.c index 293ba5d..4ecbfd3 100644 --- a/tests/check_transport_message.c +++ b/tests/check_transport_message.c @@ -111,7 +111,7 @@ END_TEST START_TEST(test_transport_message_new_message_from_xml_populated) const char* xml_jabber_msg = - "thread_valuesubject_valuebody_value"; + "thread_valuesubject_valuebody_value"; transport_message *my_msg = new_message_from_xml(xml_jabber_msg); fail_if(my_msg == NULL, "new_message_from_xml failed to create a transport_message"); @@ -199,7 +199,8 @@ START_TEST(test_transport_message_prepare_xml) "message_prepare_xml should return 1 upon success"); fail_if(a_message->msg_xml == NULL, "message_prepare_xml should store the returned xml in msg->msg_xml"); - fail_unless(strcmp(a_message->msg_xml, "threadsubjectbody") == 0, + + fail_unless(strcmp(a_message->msg_xml, "threadsubjectbody") == 0, "message_prepare_xml should store the correct xml in msg->msg_xml"); END_TEST -- 1.7.2.5