1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-18 09:24:49 +02: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:
Matt Tucker 2005-03-30 02:27:34 +00:00 committed by matt
parent 96930f78e8
commit 048aff2f68

View file

@ -217,6 +217,10 @@ public abstract class SmackTestCase extends TestCase {
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
if (!getConnection(0).getAccountManager().supportsAccountCreation())
fail("Server does not support account creation");