From 424aec63e2d72c4ade66f898c64e055bc0554296 Mon Sep 17 00:00:00 2001 From: Handa Wang Date: Wed, 19 Feb 2025 01:20:23 -0800 Subject: [PATCH] [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 --- .../src/android/net/thread/ThreadIntegrationTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/thread/tests/integration/src/android/net/thread/ThreadIntegrationTest.java b/thread/tests/integration/src/android/net/thread/ThreadIntegrationTest.java index d41550b89c..7a5895fed1 100644 --- a/thread/tests/integration/src/android/net/thread/ThreadIntegrationTest.java +++ b/thread/tests/integration/src/android/net/thread/ThreadIntegrationTest.java @@ -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