mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-16 12:48:04 +08: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:
@@ -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