mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-30 07:52: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() {
|
public void testAnonymousLogin() {
|
||||||
try {
|
try {
|
||||||
XMPPConnection connection = new XMPPConnection(getHost(), getPort());
|
XMPPConnection conn1 = new XMPPConnection(getHost(), getPort());
|
||||||
|
XMPPConnection conn2 = new XMPPConnection(getHost(), getPort());
|
||||||
try {
|
try {
|
||||||
// Try to login anonymously
|
// Try to login anonymously
|
||||||
connection.loginAnonymously();
|
conn1.loginAnonymously();
|
||||||
|
conn2.loginAnonymously();
|
||||||
}
|
}
|
||||||
catch (XMPPException e) {
|
catch (XMPPException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
fail(e.getMessage());
|
fail(e.getMessage());
|
||||||
}
|
}
|
||||||
// Close the connection
|
// Close the connection
|
||||||
connection.close();
|
conn1.close();
|
||||||
|
conn2.close();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Loading…
Reference in a new issue