-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix resolv.conf being saved outside of the test directory
`NameResolverTest` uses the `in_tmp/2` helper function to scope tests to temporary directories for that specific test. It includes a call to `File.cd!/1` and deals with the resolv.conf file generated relatively. However, using `start_supervised!/2` may not be changed into the tmp test directory and `fake_resolv.conf` files could be created in the root of the project. This makes an absolute path to the resolv.conf when starting the NameResolver process to prevent those files from being generated in the root
- Loading branch information
1 parent
2c92df9
commit d805024
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters