91 client.log("NOT IT!") |
91 client.log("NOT IT!") |
92 client.log("Expected: %s", expected_stanza); |
92 client.log("Expected: %s", expected_stanza); |
93 client.log("Received: %s", received_stanza); |
93 client.log("Received: %s", received_stanza); |
94 error(new_error("Received unexpected stanza", { stanza = tostring(received_stanza) })); |
94 error(new_error("Received unexpected stanza", { stanza = tostring(received_stanza) })); |
95 else |
95 else |
|
96 client.last_received_id = received_stanza.attr.id; |
96 client.log("YES! %s", expected_stanza) |
97 client.log("YES! %s", expected_stanza) |
97 end |
98 end |
98 expected_stanza = nil; |
99 expected_stanza = nil; |
99 client.stream:unhook("stanza", stanza_handler); |
100 client.stream:unhook("stanza", stanza_handler); |
100 client.stream.conn:pause(); |
101 client.stream.conn:pause(); |