Skip to content

Commit 84d7d3c

Browse files
committed
Skip test is env vars aren't set
1 parent 024df91 commit 84d7d3c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

core-api/src/envconfig.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,6 +1617,11 @@ address = "some-address"
16171617
#[test]
16181618
#[ignore] // Only run when explicitly called
16191619
fn test_load_client_config_profile_from_system_env_impl() {
1620+
// Check if we're in the right context
1621+
if std::env::var("TEMPORAL_ADDRESS").is_err() || std::env::var("TEMPORAL_NAMESPACE").is_err() {
1622+
eprintln!("Skipping test - required env vars not set");
1623+
return; // Early return instead of panic
1624+
}
16201625
let options = LoadClientConfigProfileOptions {
16211626
disable_file: true, // Don't load from any files
16221627
..Default::default()

0 commit comments

Comments
 (0)