refactor: err check

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2019-03-06 11:05:07 +08:00
parent b36ffb0d5d
commit 9cc27c6724
3 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ func TestSetPasswordAndKey(t *testing.T) {
err := plugin.Exec()
assert.NotNil(t, err)
assert.Equal(t, "can't set password and key at the same time", err.Error())
assert.Equal(t, errSetPasswordandKey, err)
}
func TestTrimElement(t *testing.T) {