Skip to content

Commit

Permalink
fixed bad file descriptor in test case
Browse files Browse the repository at this point in the history
-> I noticed this, because the temporary file was not deleted
-> also this test case doesn't show up in the README.md
  • Loading branch information
mammo0 committed Oct 14, 2020
1 parent 6dee95a commit c9f0e93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ Testing overwrite of existing variables: ok
Testing parsing of last line: ok
Test loading variables from default.env file: ok
Test .env variables override variables from default.env file: ok
Test error message from missing .env file: ok
$
```
2 changes: 1 addition & 1 deletion tests/dotenv-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ main() {
assert_equal "$TEST_DEFAULT_ENVFILE" 'expected' 'Test loading variables from default.env file'
assert_equal "$TEST_DOTENV_OVERRIDES_DEFAULT" 'expected' 'Test .env variables override variables from default.env file'

TEST_NO_ENVFILE=`DOTENV_FILE=nonexistent.env ../dotenv.sh 2>&1 >&3 3>&-` # Close stdout for this test
TEST_NO_ENVFILE=`DOTENV_FILE=nonexistent.env ../dotenv.sh 2>&1` # Close stdout for this test
assert_equal "$TEST_NO_ENVFILE" "nonexistent.env file not found" 'Test error message from missing .env file'

rm "$GITHUB_ENV"
Expand Down

0 comments on commit c9f0e93

Please sign in to comment.