Merge "[Thread] loose the restriction on the setEnabled API behavior" into main

This commit is contained in:
Treehugger Robot 2024-04-10 08:20:09 +00:00 • committed by Gerrit Code Review
commit df357e3612

View file

@ -748,17 +748,6 @@ public class ThreadNetworkControllerTest {
assertThat(getDeviceRole(mController)).isEqualTo(DEVICE_ROLE_STOPPED);
}
@Test
public void setEnabled_toggleAfterJoin_joinsThreadNetworkAgain() throws Exception {
joinRandomizedDatasetAndWait(mController);
setEnabledAndWait(mController, false);
assertThat(getDeviceRole(mController)).isEqualTo(DEVICE_ROLE_STOPPED);
setEnabledAndWait(mController, true);
runAsShell(ACCESS_NETWORK_STATE, () -> waitForAttachedState(mController));
}
@Test
public void setEnabled_enableFollowedByDisable_allSucceed() throws Exception {
joinRandomizedDatasetAndWait(mController);