Enable useSessionIdToScheduleMdnsTask

In case that the task is not canceled successfully, use session ID to
check if this task should continue to schedule more.

Bug: 285260665
Test: atest CtsNetTest FrameworksNetTests
Change-Id: Ic953ae781449a7ebf943999c8c8d3040a97641d9
This commit is contained in:
Yuyang Huang
2023-06-08 13:16:31 +09:00
parent e6f9de64af
commit c505844d8a
3 changed files with 12 additions and 9 deletions

View File

@@ -379,9 +379,7 @@ public class MdnsServiceTypeClientTests {
}
@Test
@Ignore("MdnsConfigs is not configurable currently.")
public void testIfPreviousTaskIsCanceledWhenNewSessionStarts() {
//MdnsConfigsFlagsImpl.useSessionIdToScheduleMdnsTask.override(true);
MdnsSearchOptions searchOptions =
MdnsSearchOptions.newBuilder().addSubtype("12345").setIsPassiveMode(true).build();
client.startSendAndReceive(mockListenerOne, searchOptions);