From 6511d61b139d95851620052f7734703817cdec46 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 15 Jun 2017 23:27:30 +0100 Subject: Show message when server does not support ping --- tests/functionaltests/test_ping.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests/functionaltests/test_ping.c') diff --git a/tests/functionaltests/test_ping.c b/tests/functionaltests/test_ping.c index ecbbfee1..99b0c7ce 100644 --- a/tests/functionaltests/test_ping.c +++ b/tests/functionaltests/test_ping.c @@ -14,6 +14,15 @@ void ping_multiple(void **state) { + stbbr_for_id("prof_disco_info_onconnect_2", + "" + "" + "" + "" + "" + "" + ); + stbbr_for_id("prof_ping_4", "" ); @@ -40,6 +49,23 @@ ping_multiple(void **state) assert_true(prof_output_exact("Ping response from server")); } +void +ping_not_supported(void **state) +{ + stbbr_for_id("prof_disco_info_onconnect_2", + "" + "" + "" + "" + "" + ); + + prof_connect(); + + prof_input("/ping"); + assert_true(prof_output_exact("Server does not support ping requests.")); +} + void ping_responds(void **state) { -- cgit 1.4.1-2-gfad0