Skip to content

Commit

Permalink
fix: tests: unset ASDF_DATA_DIR as well.
Browse files Browse the repository at this point in the history
Otherwise we can end up using the real directory during tests.
  • Loading branch information
mook-as committed Jul 14, 2021
1 parent b9d46e0 commit 3210e25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_helpers.bash
Expand Up @@ -3,6 +3,7 @@
# Unset ASDF_DIR because it may already be set by the users shell, and some
# tests fail when it is set to something other than the temp dir.
unset ASDF_DIR
unset ASDF_DATA_DIR

# shellcheck source=lib/utils.bash
. "$(dirname "$BATS_TEST_DIRNAME")"/lib/utils.bash
Expand Down

0 comments on commit 3210e25

Please sign in to comment.