Skip to content

Commit 543a067

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

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

core-api/src/envconfig.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,6 +1617,13 @@ 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()
1622+
|| std::env::var("TEMPORAL_NAMESPACE").is_err()
1623+
{
1624+
eprintln!("Skipping test - required env vars not set");
1625+
return; // Early return instead of panic
1626+
}
16201627
let options = LoadClientConfigProfileOptions {
16211628
disable_file: true, // Don't load from any files
16221629
..Default::default()

0 commit comments

Comments
 (0)