Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Apr 14, 2024
1 parent ae18e3e commit 757b8df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/src/serf/base/tests/serf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@ pub async fn serf_coordinates<T>(
panic!("timed out");
}
}

for s in serfs.iter() {
s.shutdown().await.unwrap();
}
}

/// Unit tests for serf name resolution
Expand Down Expand Up @@ -721,6 +725,10 @@ pub async fn serf_name_resolution<T>(
panic!("timed out");
}
}

for s in serfs.iter() {
s.shutdown().await.unwrap();
}
}

/// Unit test for serf local member
Expand Down
8 changes: 8 additions & 0 deletions core/src/serf/base/tests/serf/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ pub async fn serf_remove_failed_node<T>(
panic!("Failed to remove failed node");
}
}

for s in serfs.iter() {
s.shutdown().await.unwrap();
}
}

/// Unit test for remove failed node prune
Expand Down Expand Up @@ -153,6 +157,10 @@ pub async fn serf_remove_failed_node_prune<T>(
serfs.swap(1, 2);

wait_until_num_nodes(2, &serfs[..2]).await;

for s in serfs.iter() {
s.shutdown().await.unwrap();
}
}

/// Unit test for remove failed node ourself
Expand Down

0 comments on commit 757b8df

Please sign in to comment.