[Thread] fix the failure in ThreadIntegrationTest

This test had an assumption that Thread is enabled which is not true. This CL enables Thread in the setUp().

Bug: 397583601
Change-Id: I9c4d5028a663c6fe1c581267ff7d172d0cba577c
This commit is contained in:
Handa Wang 2025-02-19 01:20:23 -08:00
commit 424aec63e2

View file

@ -130,6 +130,7 @@ public class ThreadIntegrationTest {
public void setUp() throws Exception {
mExecutor = Executors.newSingleThreadExecutor();
mOtCtl = new OtDaemonController();
mController.setEnabledAndWait(true);
mController.leaveAndWait();
// TODO: b/323301831 - This is a workaround to avoid unnecessary delay to re-form a network