Skip to content

Commit cb2a601

Browse files
committed
nvim: cleanup .nvimlog file in testing
1 parent 60804fc commit cb2a601

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nvim/nvim_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"errors"
66
"fmt"
77
"log"
8+
"os"
89
"path/filepath"
910
"reflect"
1011
"sort"
@@ -34,6 +35,10 @@ func newChildProcess(tb testing.TB) (*Nvim, func()) {
3435
if err := v.Close(); err != nil {
3536
tb.Fatal(err)
3637
}
38+
39+
if _, err := os.Stat(".nvimlog"); err == nil {
40+
os.RemoveAll(".nvimlog")
41+
}
3742
}
3843
}
3944

0 commit comments

Comments
 (0)