# HG changeset patch # User Matthew Wild # Date 1234380948 0 # Node ID f2dc6118b3f4d812bb4a8e53df3b3f38641edc1a # Parent 31d5be1371cf1fe1e648f04eac5eb7a8ecec0eb9 Correct tests for stanza routing IQs to bare JIDs diff -r 31d5be1371cf -r f2dc6118b3f4 tests/test_core_stanza_router.lua --- a/tests/test_core_stanza_router.lua Wed Feb 11 18:30:44 2009 +0000 +++ b/tests/test_core_stanza_router.lua Wed Feb 11 19:35:48 2009 +0000 @@ -10,8 +10,8 @@ function core_process_stanza(core_process_stanza) local s2sout_session = { to_host = "remotehost", from_host = "localhost", type = "s2sout" } - local s2sin_session = { from_host = "remotehost", to_host = "localhost", type = "s2sin" } - local local_host_session = { host = "localhost", type = "local" } + local s2sin_session = { from_host = "remotehost", to_host = "localhost", type = "s2sin", hosts = { ["remotehost"] = { authed = true } } } + local local_host_session = { host = "localhost", type = "local", s2sout = { ["remotehost"] = s2sout_session } } local local_user_session = { username = "user", host = "localhost", resource = "resource", full_jid = "user@localhost/resource", type = "c2s" } local hosts = { ["localhost"] = local_host_session;