Skip to content

Commit

Permalink
chore: match cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanlakhani committed Jan 25, 2024
1 parent 0fc8048 commit f2634eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion homestar-runtime/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ mod test {

#[test]
#[serial_test::file_serial]
fn overriding_env() {
fn overriding_env_serial() {
std::env::set_var("HOMESTAR__NODE__NETWORK__RPC__PORT", "2046");
std::env::set_var("HOMESTAR__NODE__DB__MAX_POOL_SIZE", "1");
let settings = Settings::build(Some("fixtures/settings.toml".into())).unwrap();
Expand Down
8 changes: 4 additions & 4 deletions homestar-runtime/tests/network/dht.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const UNSUBSCRIBE_NETWORK_EVENTS_ENDPOINT: &str = "unsubscribe_network_events";

#[test]
#[serial_test::file_serial]
fn test_libp2p_dht_records_integration() -> Result<()> {
fn test_libp2p_dht_records_serial() -> Result<()> {
let proc_info1 = ProcInfo::new().unwrap();
let proc_info2 = ProcInfo::new().unwrap();

Expand Down Expand Up @@ -367,7 +367,7 @@ fn test_libp2p_dht_records_integration() -> Result<()> {

#[test]
#[serial_test::file_serial]
fn test_libp2p_dht_quorum_failure_integration() -> Result<()> {
fn test_libp2p_dht_quorum_failure_serial() -> Result<()> {
let proc_info1 = ProcInfo::new().unwrap();
let proc_info2 = ProcInfo::new().unwrap();

Expand Down Expand Up @@ -566,7 +566,7 @@ fn test_libp2p_dht_quorum_failure_integration() -> Result<()> {

#[test]
#[serial_test::file_serial]
fn test_libp2p_dht_workflow_info_provider_integration() -> Result<()> {
fn test_libp2p_dht_workflow_info_provider_serial() -> Result<()> {
let proc_info1 = ProcInfo::new().unwrap();
let proc_info2 = ProcInfo::new().unwrap();

Expand Down Expand Up @@ -859,7 +859,7 @@ fn test_libp2p_dht_workflow_info_provider_integration() -> Result<()> {
#[ignore]
#[test]
#[serial_test::file_serial]
fn test_libp2p_dht_workflow_info_provider_recursive_integration() -> Result<()> {
fn test_libp2p_dht_workflow_info_provider_recursive_serial() -> Result<()> {
// NOTE: We are ignoring this test for now because we do not have a means
// to properly isolate node a from node c. In the future when nodes are
// partitioned as private nodes or from NATs, we will bring this test back.
Expand Down
4 changes: 2 additions & 2 deletions homestar-runtime/tests/network/mdns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static BIN: Lazy<PathBuf> = Lazy::new(|| assert_cmd::cargo::cargo_bin(BIN_NAME))

#[test]
#[serial_test::file_serial]
fn test_libp2p_connect_after_mdns_discovery_integration() -> Result<()> {
fn test_libp2p_connect_after_mdns_discovery_serial() -> Result<()> {
let proc_info1 = ProcInfo::new().unwrap();
let proc_info2 = ProcInfo::new().unwrap();

Expand Down Expand Up @@ -176,7 +176,7 @@ fn test_libp2p_connect_after_mdns_discovery_integration() -> Result<()> {

#[test]
#[serial_test::file_serial]
fn test_libp2p_disconnect_mdns_discovery_integration() -> Result<()> {
fn test_libp2p_disconnect_mdns_discovery_serial() -> Result<()> {
// Start two nodes each configured to listen at 0.0.0.0 with no known peers.
// The nodes are configured with port 0 to allow the OS to select a port.

Expand Down

0 comments on commit f2634eb

Please sign in to comment.