From 1f34f3e613d3390962afbaf11903cd41986dbeaf Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 31 May 2024 23:09:35 +0200 Subject: [PATCH] [sinttest] Directly use rosterTwo instead of Roster.getInstanceFor() --- .../org/jivesoftware/smack/roster/RosterIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-integration-test/src/main/java/org/jivesoftware/smack/roster/RosterIntegrationTest.java b/smack-integration-test/src/main/java/org/jivesoftware/smack/roster/RosterIntegrationTest.java index 28dff0ebf..91c11ea3e 100644 --- a/smack-integration-test/src/main/java/org/jivesoftware/smack/roster/RosterIntegrationTest.java +++ b/smack-integration-test/src/main/java/org/jivesoftware/smack/roster/RosterIntegrationTest.java @@ -142,7 +142,7 @@ public class RosterIntegrationTest extends AbstractSmackIntegrationTest { "whose value is \"subscribe\").") public void testRosterPushAfterSubscriptionRequest() throws Exception { IntegrationTestRosterUtil.ensureBothAccountsAreNotInEachOthersRoster(conOne, conTwo); - Roster.getInstanceFor(conTwo).setSubscriptionMode(Roster.SubscriptionMode.manual); // prevents a race condition when asserting the captured roster entry. + rosterTwo.setSubscriptionMode(Roster.SubscriptionMode.manual); // prevents a race condition when asserting the captured roster entry. final ResultSyncPoint added = new ResultSyncPoint<>(); final RosterListener rosterListener = new AbstractRosterListener() {