about summary refs log tree commit diff stats
path: root/tests/functionaltests/test_ping.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-04-12 22:28:21 +0100
committerDominik Heidler <dominik@heidler.eu>2016-04-26 23:50:55 +0200
commit167553ae8f7e549461f72540c5536dd201e437bf (patch)
treefb654ffceeb0fdf1dc3aaee8ef01185ad071a14a /tests/functionaltests/test_ping.c
parent1b0ce852bba81c3bbed1f7cbf04d0b60f1f0961b (diff)
downloadprofani-tty-167553ae8f7e549461f72540c5536dd201e437bf.tar.gz
Fixed functional test ID based stubs
Diffstat (limited to 'tests/functionaltests/test_ping.c')
-rw-r--r--tests/functionaltests/test_ping.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/functionaltests/test_ping.c b/tests/functionaltests/test_ping.c
index a3f3458c..8a065f15 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_2",
-        "<iq id='prof_ping_2' type='result' to='stabber@localhost/profanity'/>"
-    );
     stbbr_for_id("prof_ping_3",
         "<iq id='prof_ping_3' type='result' to='stabber@localhost/profanity'/>"
     );
+    stbbr_for_id("prof_ping_4",
+        "<iq id='prof_ping_4' type='result' to='stabber@localhost/profanity'/>"
+    );
 
     prof_connect();
 
     prof_input("/ping");
     assert_true(stbbr_received(
-        "<iq id='prof_ping_2' type='get'>"
+        "<iq id='prof_ping_3' type='get'>"
             "<ping xmlns='urn:xmpp:ping'/>"
         "</iq>"
     ));
@@ -33,7 +33,7 @@ ping_multiple(void **state)
 
     prof_input("/ping");
     assert_true(stbbr_received(
-        "<iq id='prof_ping_3' type='get'>"
+        "<iq id='prof_ping_4' type='get'>"
             "<ping xmlns='urn:xmpp:ping'/>"
         "</iq>"
     ));