test: fix some environment variables influencing our tests
@@ -422,9 +422,12 @@ mod tests {
#[test]
fn s3_config_missing_params() {
- let config =
+ let mut config =
ObjectStoreConfig::from_iter_safe(&["server", "--object-store", "s3"]).unwrap();
+ // clean out eventual leaks via env variables
+ config.bucket = None;
+
let err = ObjectStore::try_from(&config).unwrap_err().to_string();
assert_eq!(
@@ -458,9 +461,12 @@ mod tests {
#[test]
fn google_config_missing_params() {
- let config =
+ let mut config =
ObjectStoreConfig::from_iter_safe(&["server", "--object-store", "google"]).unwrap();
+ // clean out eventual leaks via env variables
+ config.bucket = None;
+
let err = ObjectStore::try_from(&config).unwrap_err().to_string();
assert_eq!(
@@ -497,9 +503,12 @@ mod tests {
#[test]
fn azure_config_missing_params() {
- let config =
+ let mut config =
ObjectStoreConfig::from_iter_safe(&["server", "--object-store", "azure"]).unwrap();
+ // clean out eventual leaks via env variables
+ config.bucket = None;
+
let err = ObjectStore::try_from(&config).unwrap_err().to_string();
assert_eq!(
