From 915626123d3df028a42be070aaf00e764e564557 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 26 Nov 2023 13:50:00 +0100 Subject: [PATCH] [sinttest] Fix IBR-based account registration When performing IBR-based account registration, we do not need to login nor are the admin credentials typically available. Suggested-by: Guus der Kinderen --- .../igniterealtime/smack/inttest/XmppConnectionManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/XmppConnectionManager.java b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/XmppConnectionManager.java index 0db8567554..7f670986ac 100644 --- a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/XmppConnectionManager.java +++ b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/XmppConnectionManager.java @@ -187,14 +187,14 @@ public static boolean removeConnectionDescriptor(String nickname) { case inBandRegistration: accountRegistrationConnection = defaultConnectionDescriptor.construct(sinttestConfiguration); accountRegistrationConnection.connect(); - accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername, - sinttestConfiguration.adminAccountPassword); if (sinttestConfiguration.accountRegistration == AccountRegistration.inBandRegistration) { adminManager = null; accountManager = AccountManager.getInstance(accountRegistrationConnection); } else { + accountRegistrationConnection.login(sinttestConfiguration.adminAccountUsername, + sinttestConfiguration.adminAccountPassword); adminManager = ServiceAdministrationManager.getInstanceFor(accountRegistrationConnection); accountManager = null; }