From c5acd3f655e60fe16fd3f9961f85a087e8ffc8aa Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 6 Apr 2009 13:36:29 +0000
Subject: [PATCH] fix dispatcher tests. Fixes #4830

---
 test/test_xmpp_dispatcher_nb.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/test_xmpp_dispatcher_nb.py b/test/test_xmpp_dispatcher_nb.py
index 8665c21e71..7d57cae6e0 100644
--- a/test/test_xmpp_dispatcher_nb.py
+++ b/test/test_xmpp_dispatcher_nb.py
@@ -35,6 +35,7 @@ class TestDispatcherNB(unittest.TestCase):
 	def _simulate_connect(self):
 		self.dispatcher.PlugIn(self.client) # client is owner
 		# Simulate that we have established a connection
+		self.dispatcher.StreamInit()
 		self.dispatcher.ProcessNonBlocking("<stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'>")
 
 	def test_unbound_namespace_prefix(self):
-- 
GitLab