Skip to content

Commit

Permalink
"updates" integration test panics at the end, succeeds anyway, and do…
Browse files Browse the repository at this point in the history
…uble-panics on failure
  • Loading branch information
davepacheco committed Apr 13, 2022
1 parent 7e2e999 commit 4812772
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nexus/tests/integration_tests/updates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ use tough::key_source::KeySource;
use tough::schema::{KeyHolder, RoleKeys, RoleType, Root};
use tough::sign::Sign;

// If you're getting a double-panic here, run the test with
// `cargo test -- --nocapture test_update_end_to_end` to get output.
// `dropshot::HttpServer`'s `Drop` implementation panics.
#[tokio::test]
async fn test_update_end_to_end() {
let mut config = load_test_config();
Expand All @@ -62,7 +59,6 @@ async fn test_update_end_to_end() {
.unwrap()
.start();
let local_addr = server.local_addr();
tokio::spawn(async move { server.await });

// stand up the test environment
config.updates = Some(UpdatesConfig {
Expand Down Expand Up @@ -92,6 +88,7 @@ async fn test_update_end_to_end() {
TARGET_CONTENTS
);

server.close().await.expect("failed to shut down dropshot server");
cptestctx.teardown().await;
}

Expand Down

0 comments on commit 4812772

Please sign in to comment.