Skip to content

Commit

Permalink
#146 [S] - Resolve file locking issues in DeleteFileIfExists test on …
Browse files Browse the repository at this point in the history
…windows.
  • Loading branch information
steffano0 committed Jul 5, 2024
1 parent 62de39d commit f32149e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ func (cs *ConfigSuite) Test_Save_nonPersistentConfiguration(c *C) {
func (cs *ConfigSuite) Test_DeleteFileIfExists_fileExists(c *C) {

filename := "temp_file.txt"
_, err := os.Create(filename)
file, err := os.Create(filename)
file.Close()
c.Assert(err, IsNil)

ac := &ApplicationConfig{filename: filename}
Expand Down

0 comments on commit f32149e

Please sign in to comment.