From: Bill Erickson Date: Thu, 20 Sep 2018 22:04:09 +0000 (-0400) Subject: LP#1703411 XMPP opensrf element make check repairs X-Git-Tag: osrf_rel_3_1_0-beta~19 X-Git-Url: http://git.equinoxoli.org/?p=opensrf-equinox.git;a=commitdiff_plain;h=9682d15475485522812ac73ac10e283d11176f7e 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 --- 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