Admin should be disconnected after tests.

The Smack Integration tests can use an admin account to provision
accounts that are used by the tests. This admin account uses an XMPP
connection to interact with the server-under-test.

When the tests are over, this account should be disconnected
explicitly, to prevent stream management from keeping it alive longer
than it needs to.
This commit is contained in:
Guus der Kinderen 2019-04-08 16:10:29 +02:00
parent af0fb7543c
commit a9673408cc
1 changed files with 4 additions and 0 deletions

View File

@ -240,6 +240,10 @@ public class XmppConnectionManager<DC extends AbstractXMPPConnection> {
}
connections.clear();
if (accountRegistrationConnection != null) {
accountRegistrationConnection.disconnect();
}
}