Commit ad5bab5
authored
Fix test creating
## Changes
PR #3797 replaced a function that returns a state file path with one
that returns both a filename and a path. The test used only the
filename, causing the state file to be created in the wrong directory.
In the current state, it creates the file in `$PWD`, equal to the
directory where the test file is located. The path in `localPath` is
located inside the bundle cache directory, which is initialized to
somewhere inside `t.TempDir()` above.terraform.tfstate in source directory (#3855)1 parent d28763f commit ad5bab5
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
90 | | - | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
0 commit comments