blob: b6a201e37965184ec7028c1145ad535ad1d9ff4c [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {anyhow::Error, fuchsia_async as fasync, test_utils_lib::test_utils::*};
#[fasync::run_singlethreaded(test)]
async fn test() -> Result<(), Error> {
let test = BlackBoxTest::default(
"fuchsia-pkg://fuchsia.com/shutdown_integration_test#meta/shutdown_integration_root.cm",
)
.await?;
test.connect_to_event_source().await?.start_component_tree().await?;
test.component_manager_app
.wait_with_output()
.await
.and_then(|result| result.exit_status.ok().map_err(|e| e.into()))
}