Removing "Failed to get system health diags" message from fallback tests

am: 9b1c168273

Change-Id: I4528370073f0258e5f0276dfb1d71dae9816ddea
This commit is contained in:
vadimt
2019-09-24 13:13:12 -07:00
committed by android-build-merger
@@ -42,6 +42,7 @@ import androidx.test.uiautomator.UiDevice;
import androidx.test.uiautomator.Until;
import com.android.launcher3.tapl.LauncherInstrumentation;
import com.android.launcher3.tapl.TestHelpers;
import com.android.launcher3.testcomponent.TestCommandReceiver;
import com.android.launcher3.util.rule.FailureWatcher;
import com.android.quickstep.NavigationModeSwitchRule.NavigationModeSwitch;
@@ -103,6 +104,11 @@ public class FallbackRecentsTest {
}
}
};
if (TestHelpers.isInLauncherProcess()) {
mLauncher.setSystemHealthSupplier(startTime -> TestCommandReceiver.callCommand(
TestCommandReceiver.GET_SYSTEM_HEALTH_MESSAGE, startTime.toString()).
getString("result"));
}
}
@NavigationModeSwitch(mode = THREE_BUTTON)