Skip to content

Commit

Permalink
copy dir
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Aug 31, 2023
1 parent 3d756ff commit d0ae5c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ func createConfigFileForTest(dirs []string, resolver, deployer string, t *testin
// Create config file to make sure the path is valid
f, err := os.OpenFile(filePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
assert.NoError(t, err, "Couldn't create file")
defer func() {
assert.NoError(t, f.Close())
}()
defer func(file *os.File) {
assert.NoError(t, file.Close())
}(f)
_, err = f.Write(d)
assert.NoError(t, err)
}
Expand Down

0 comments on commit d0ae5c3

Please sign in to comment.