Merge "Accept more than one SD in NsdManagerTest"

This commit is contained in:
Vinit Deshpande
2015-02-04 02:07:55 +00:00
committed by Gerrit Code Review

View File

@@ -372,8 +372,6 @@ public class NsdManagerTest extends AndroidTestCase {
assertTrue(lastEvent != null); assertTrue(lastEvent != null);
assertTrue(lastEvent.mInfo.getServiceName().equals(registeredName)); assertTrue(lastEvent.mInfo.getServiceName().equals(registeredName));
assertTrue(eventCacheSize() == 2);
// Register service again to see if we discover it // Register service again to see if we discover it
checkForAdditionalEvents(); checkForAdditionalEvents();
clearEventCache(); clearEventCache();
@@ -405,7 +403,6 @@ public class NsdManagerTest extends AndroidTestCase {
lastEvent.mInfo.getServiceName()); lastEvent.mInfo.getServiceName());
assertTrue(lastEvent.mInfo.getServiceName().equals(registeredName)); assertTrue(lastEvent.mInfo.getServiceName().equals(registeredName));
assertTrue(checkCacheSize(2));
checkForAdditionalEvents(); checkForAdditionalEvents();
clearEventCache(); clearEventCache();