You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
As far as I know I am on the most recent release
###What operating system and processor architecture are you using (go env)?
Processor: Ryzen 7 1700x
Architecture: AMD64
Operating System: Manjaro Linux 20.1.20
What did you do?
I tried to delete a directory and it failed to delete in a unit test while returning no error
func Test_AddNewUser(t *testing.T) {
ConfigurationFile.UsersDirectory = "./UserResults"
newUser := "Dracula Bramstokers"
newFile := ConfigurationFile.UsersDirectory + PS + "Dracula_Bramstokers.json"
err := AddNewUser(newUser)
assert.Nil(t, err, "This should be nil")
assert.FileExists(t, newFile, "File should have been created")
os.Remove(newFile)
ConfigurationFile.UsersDirectory = "bluhbluh"
newUser = "Dracula Bramstokers"
newFile = ConfigurationFile.UsersDirectory + PS + "Dracula_Bramstokers.json"
err = AddNewUser(newUser)
assert.Nil(t, err, "This should be nil")
assert.FileExists(t, newFile, "File should have been created")
os.RemoveAll("bluhbluh")
What version of Go are you using (
go version
)?go version go1.15.2 linux/amd64
Does this issue reproduce with the latest release?
As far as I know I am on the most recent release
###What operating system and processor architecture are you using (
go env
)?Processor: Ryzen 7 1700x
Architecture: AMD64
Operating System: Manjaro Linux 20.1.20
What did you do?
I tried to delete a directory and it failed to delete in a unit test while returning no error
func Test_AddNewUser(t *testing.T) {
}
func Test_ListOfUserResultPaths(t *testing.T) {
ConfigurationFile.UsersDirectory = "UnitTestingUsers"
newUserOne := "Dracula Vampire"
newUserTwo := "Werewolf Wolfie"
newUserThree := "Flying Monkey"
newFileOne := ConfigurationFile.UsersDirectory + PS + newUserOne
newFileTwo := ConfigurationFile.UsersDirectory + PS + newUserTwo
newFileThree := ConfigurationFile.UsersDirectory + PS + newUserThree
}
The second one did not remove the dir
What did you expect to see?
I expected to see the directory removed or an error reporting why it did not
What did you see instead?
I saw the directory remain
The text was updated successfully, but these errors were encountered: