mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-26 20:16:32 +00:00
Close the temp ttyout file in the SGR deduplication test
The file is opened under t.TempDir() and never closed, so the cleanup that TempDir registers cannot remove it on Windows, where an open file cannot be unlinked. The test itself passes; it is the cleanup that fails the run. history_test.go and options_test.go already close theirs.
This commit is contained in:
1 parent
ca4c1b80e3
commit
85a2a33612
1 file changed
+1
@@ -434,6 +434,7 @@ func TestLightRendererSGRDeduplication(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer out.Close()
|
||||
r.ttyout = out
|
||||
|
||||
w := r.NewWindow(0, 0, 40, 4, WindowList, MakeBorderStyle(BorderNone, true), false).(*LightWindow)
|
||||
|
||||
Reference in new issue
Block a user