diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-26 09:55:37 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-26 09:55:37 (GMT) |
commit | e67eb946a93f2217291e1dd27e287e1b1f2f030a (patch) | |
tree | 19ac040223e833b25b8485055cf47eaf7179e4d8 /Sluift/multiple_client_test.lua | |
parent | c2886c9ff6152130e2adb006f84268f972e629cc (diff) | |
download | swift-contrib-e67eb946a93f2217291e1dd27e287e1b1f2f030a.zip swift-contrib-e67eb946a93f2217291e1dd27e287e1b1f2f030a.tar.bz2 |
Moving tests around.
Diffstat (limited to 'Sluift/multiple_client_test.lua')
-rw-r--r-- | Sluift/multiple_client_test.lua | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Sluift/multiple_client_test.lua b/Sluift/multiple_client_test.lua deleted file mode 100644 index d2b2cd7..0000000 --- a/Sluift/multiple_client_test.lua +++ /dev/null @@ -1,26 +0,0 @@ -require "sluift" - --- sluift.debug = true -num_clients = 10 - -print("Connecting clients") -clients = {} -for i = 1, num_clients do - jid = os.getenv("SWIFT_CLIENTTEST_JID") .. "/Client" .. i - client = sluift.new_client(jid, os.getenv("SWIFT_CLIENTTEST_PASS")) - client:async_connect() - table.insert(clients, client) -end - -print("Waiting for clients to be connected") -for i, client in ipairs(clients) do - client:wait_connected() - client:send_presence("Hello") -end - -print("Disconnecting clients") -for i, client in ipairs(clients) do - client:disconnect() -end - -print("Done") |