From 3afa01cc4e445d92d671a0b7f0ce4ae08f6b33ed Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 26 Sep 2018 15:33:21 +0800 Subject: [PATCH] update Signed-off-by: Bo-Yi Wu --- plugin_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin_test.go b/plugin_test.go index 80de2f6..3bb1cbf 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -412,7 +412,7 @@ func TestScriptStop(t *testing.T) { } err := plugin.Exec() - assert.Nil(t, err) + assert.NotNil(t, err) assert.Equal(t, unindent(expected), unindent(buffer.String())) } @@ -446,7 +446,7 @@ func TestNoneScriptStop(t *testing.T) { } err := plugin.Exec() - assert.Nil(t, err) + assert.NotNil(t, err) assert.Equal(t, unindent(expected), unindent(buffer.String())) }