feat: fix force error after delete directory

This commit is contained in:
Urko 2023-03-05 00:10:46 +01:00
parent b049c6a779
commit 0bf26d2019
1 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,10 @@ func Test_writer_WriteFileError(t *testing.T) {
go func(t *testing.T) {
err := deleteAllDirs()
require.NoError(t, err)
go func(err error) {
require.NoError(t, err)
}(err)
for {
f, err := os.Stat(testWriterPath)
if err != nil {