Skip to content

Commit a2878fa

Browse files
committed
nvim/plugin: add t.Parallel() to TestSubscribe
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 8fa153d commit a2878fa

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

nvim/plugin/plugin_test.go

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,16 @@ func TestRegister(t *testing.T) {
4242
)
4343

4444
p.HandleCommand(
45-
&plugin.CommandOptions{Name: "Hello", NArgs: "*"},
45+
&plugin.CommandOptions{
46+
Name: "Hello",
47+
NArgs: "*",
48+
Range: "%",
49+
Addr: "buffers",
50+
Complete: "buffer",
51+
Bang: true,
52+
Register: true,
53+
Bar: true,
54+
},
4655
func(n *nvim.Nvim, args []string) error {
4756
chunks := []nvim.TextChunk{
4857
{
@@ -104,14 +113,16 @@ func TestRegister(t *testing.T) {
104113
t.Fatalf("exec 'Hello' command: %v", err)
105114
}
106115

107-
expected := `HelloWorld`
116+
expected := `Helloorld`
108117
if result != expected {
109118
t.Fatalf("Hello returned %q, want %q", result, expected)
110119
}
111120
})
112121
}
113122

114123
func TestSubscribe(t *testing.T) {
124+
t.Parallel()
125+
115126
p := plugin.New(nvimtest.NewChildProcess(t))
116127

117128
const event1 = "event1"

0 commit comments

Comments
 (0)