mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Modified to make sure that the server can handle many anonymous users.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2442 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
5386c77c7f
commit
a6ae5bcc86
1 changed files with 6 additions and 3 deletions
|
@ -55,17 +55,20 @@ public class LoginTest extends SmackTestCase {
|
|||
*/
|
||||
public void testAnonymousLogin() {
|
||||
try {
|
||||
XMPPConnection connection = new XMPPConnection(getHost(), getPort());
|
||||
XMPPConnection conn1 = new XMPPConnection(getHost(), getPort());
|
||||
XMPPConnection conn2 = new XMPPConnection(getHost(), getPort());
|
||||
try {
|
||||
// Try to login anonymously
|
||||
connection.loginAnonymously();
|
||||
conn1.loginAnonymously();
|
||||
conn2.loginAnonymously();
|
||||
}
|
||||
catch (XMPPException e) {
|
||||
e.printStackTrace();
|
||||
fail(e.getMessage());
|
||||
}
|
||||
// Close the connection
|
||||
connection.close();
|
||||
conn1.close();
|
||||
conn2.close();
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue