Merge "[Thread] loose the restriction on the setEnabled API behavior" into main
This commit is contained in:
commit
df357e3612
1 changed files with 0 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue