mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +01:00
Use hostname reported by server.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2472 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
96930f78e8
commit
048aff2f68
1 changed files with 4 additions and 0 deletions
|
@ -217,6 +217,10 @@ public abstract class SmackTestCase extends TestCase {
|
||||||
connections[i] = new XMPPConnection(host, port, getSocketFactory());
|
connections[i] = new XMPPConnection(host, port, getSocketFactory());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Use the host name that the server reports. This is a good idea in most
|
||||||
|
// cases, but could fail if the user set a hostname in their XMPP server
|
||||||
|
// that will not resolve as a network connection.
|
||||||
|
host = connections[0].getHost();
|
||||||
// Create the test accounts
|
// Create the test accounts
|
||||||
if (!getConnection(0).getAccountManager().supportsAccountCreation())
|
if (!getConnection(0).getAccountManager().supportsAccountCreation())
|
||||||
fail("Server does not support account creation");
|
fail("Server does not support account creation");
|
||||||
|
|
Loading…
Reference in a new issue