blob: 8594af5802fe1a788018d16f4446b75a21a56f6b [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 {fuchsia_async as fasync, test_utils_lib::opaque_test::*};
#[fasync::run_singlethreaded(test)]
async fn test() {
let mut test = OpaqueTest::default(
"fuchsia-pkg://fuchsia.com/shutdown_integration_test#meta/shutdown_integration_root.cm",
)
.await
.unwrap();
test.connect_to_event_source().await.unwrap().start_component_tree().await;
test.component_manager_app
.wait()
.await
.and_then(|exit_status| exit_status.ok().map_err(|e| e.into()))
.unwrap();
}