Skip to content

Commit 61ad612

Browse files
committed
nvim: use t.Cleanup
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 2e0776a commit 61ad612

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nvim/api_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ func TestAPI(t *testing.T) {
7676
t.Parallel()
7777

7878
v, cleanup := newChildProcess(t)
79-
defer cleanup()
79+
t.Cleanup(func() {
80+
cleanup()
81+
})
8082

8183
apiInfo, err := v.APIInfo()
8284
if err != nil {

0 commit comments

Comments
 (0)