Yahoo Tests again. Remove auto adding friends. Add it in postTestSubscribe

cusax-fix
Damian Minkov 19 years ago
parent 28140b6f97
commit 966ab2726a

@ -432,6 +432,26 @@ public void postTestSubscribe()
//the actual presence status of the tester agent because a first
//notification is not supposed to have the old status as it really was.
assertNotNull( "Reported old PresenceStatus: ", reportedOldStatus );
try
{
// add the the user to the reverse side needed for status tests
subEvtCollector.collectedEvents.clear();
operationSetPresence2.addSubsciptionListener(subEvtCollector);
synchronized (subEvtCollector)
{
operationSetPresence2.subscribe(fixture.userID1);
//we may already have the event, but it won't hurt to check.
subEvtCollector.waitForEvent(10000);
operationSetPresence2.removeSubscriptionListener(
subEvtCollector);
}
}
catch (OperationFailedException ex)
{
// happens if the user is already subscribed
}
dumplists();
}
@ -530,7 +550,7 @@ public void clearLists()
Object o = new Object();
synchronized(o)
{
o.wait(6000);
o.wait(3000);
}
}
@ -888,9 +908,9 @@ private class AuthHandler
public AuthorizationResponse processAuthorisationRequest(
AuthorizationRequest req, Contact sourceContact)
{
try{
opset.subscribe(sourceContact.getAddress());
}catch(Exception ex){}
// try{
// opset.subscribe(sourceContact.getAddress());
// }catch(Exception ex){}
return
new AuthorizationResponse(AuthorizationResponse.ACCEPT, "");

Loading…
Cancel
Save