fix: Switch NG tests to use TEST_INFLUXDB_IOX_CATALOG_DSN too

pull/24376/head
Carol (Nichols || Goulding) 2022-03-04 15:45:34 -05:00
parent a14e642f39
commit e315012fe3
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ pub fn rand_name() -> String {
.collect()
}
// Helper macro to skip tests if TEST_INTEGRATION and DATABASE_URL environment variables are
// Helper macro to skip tests if TEST_INTEGRATION and TEST_INFLUXDB_IOX_CATALOG_DSN environment variables are
// not set.
#[macro_export]
macro_rules! maybe_skip_integration {
@ -19,7 +19,7 @@ macro_rules! maybe_skip_integration {
use std::env;
dotenv::dotenv().ok();
let required_vars = ["DATABASE_URL"];
let required_vars = ["TEST_INFLUXDB_IOX_CATALOG_DSN"];
let unset_vars: Vec<_> = required_vars
.iter()
.filter_map(|&name| match env::var(name) {
@ -49,7 +49,7 @@ macro_rules! maybe_skip_integration {
return;
} else {
env::var("DATABASE_URL").expect("already checked DATABASE_URL")
env::var("TEST_INFLUXDB_IOX_CATALOG_DSN").expect("already checked TEST_INFLUXDB_IOX_CATALOG_DSN")
}
}};
}