feat: fix force error after delete directory
This commit is contained in:
parent
b049c6a779
commit
0bf26d2019
|
@ -81,7 +81,10 @@ func Test_writer_WriteFileError(t *testing.T) {
|
||||||
|
|
||||||
go func(t *testing.T) {
|
go func(t *testing.T) {
|
||||||
err := deleteAllDirs()
|
err := deleteAllDirs()
|
||||||
require.NoError(t, err)
|
go func(err error) {
|
||||||
|
require.NoError(t, err)
|
||||||
|
}(err)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
f, err := os.Stat(testWriterPath)
|
f, err := os.Stat(testWriterPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue