[Thread] loose the restriction on the setEnabled API behavior

It's too strict that the device must rejoin the network after being
enabled again. This probably don't work on mobile devices. remove the
CTS case for now.

Change-Id: I3a4511f4b2fddddf982206720bbb61f718bc8327
This commit is contained in:
Kangping Dong 2024-04-10 13:06:43 +08:00
commit 504fe7d510

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);