Skip to content

Commit 6148162

Browse files
authored
test(rust/core): ensure unset the env var before the test without the env var (#3146)
1 parent 0fd80bc commit 6148162

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/core/src/driver_manager.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,6 +1894,7 @@ mod tests {
18941894
#[cfg_attr(not(feature = "driver_manager_test_lib"), ignore)]
18951895
fn test_load_driver_env() {
18961896
// ensure that we fail without the env var set
1897+
env::remove_var("ADBC_CONFIG_PATH");
18971898
let err =
18981899
ManagedDriver::load_from_name("sqlite", None, AdbcVersion::V100, LOAD_FLAG_SEARCH_ENV)
18991900
.unwrap_err();

0 commit comments

Comments
 (0)