From a48b9fcec2385c5d571f1f02ed6e769d6b4ee821 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 13 Jun 2015 19:41:11 +0100 Subject: Tidied functional tests --- tests/functionaltests/test_ping.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'tests/functionaltests/test_ping.c') diff --git a/tests/functionaltests/test_ping.c b/tests/functionaltests/test_ping.c index e2ca79ca..76fd979c 100644 --- a/tests/functionaltests/test_ping.c +++ b/tests/functionaltests/test_ping.c @@ -14,18 +14,18 @@ void ping_multiple(void **state) { - stbbr_for_id("prof_ping_1", - "" - ); stbbr_for_id("prof_ping_2", "" ); + stbbr_for_id("prof_ping_3", + "" + ); - prof_connect("stabber@localhost", "password"); + prof_connect(); prof_input("/ping"); assert_true(stbbr_received( - "" + "" "" "" )); @@ -33,7 +33,7 @@ ping_multiple(void **state) prof_input("/ping"); assert_true(stbbr_received( - "" + "" "" "" )); @@ -43,9 +43,7 @@ ping_multiple(void **state) void ping_responds(void **state) { - prof_connect("stabber@localhost", "password"); - - assert_true(prof_output_exact("stabber@localhost logged in successfully")); + prof_connect(); stbbr_send( "" -- cgit 1.4.1-2-gfad0