diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-02-11 19:35:48 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-02-11 19:35:48 +0000 |
commit | 2f8d4df4b39748e7a238f80e8441cc6e4e1195c1 (patch) | |
tree | e6df834d88059b9a1528a729a35e6fcbc66ea1b7 /tests | |
parent | 593f1c0a523ef586f3884057632eae8123066209 (diff) | |
download | prosody-2f8d4df4b39748e7a238f80e8441cc6e4e1195c1.tar.gz prosody-2f8d4df4b39748e7a238f80e8441cc6e4e1195c1.zip |
Correct tests for stanza routing IQs to bare JIDs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_core_stanza_router.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_core_stanza_router.lua b/tests/test_core_stanza_router.lua index 213e543d..00e20f00 100644 --- a/tests/test_core_stanza_router.lua +++ b/tests/test_core_stanza_router.lua @@ -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; |