fix error message

This commit is contained in:
koba1t
2022-04-13 04:55:21 +09:00
parent cdc4a5083b
commit 01ab069bd2
4 changed files with 14 additions and 4 deletions

View File

@@ -584,7 +584,7 @@ func TestLookup_Fn_create_with_wildcard_error(t *testing.T) {
node, err := Parse(s)
assert.NoError(t, err)
_, err = node.Pipe(LookupCreate(yaml.MappingNode, "a", "b", "*", "t"))
assert.Error(t, err, "cannot support create option in a multi-value target now")
assert.Error(t, err, "wildcard is not supported in PathGetter")
}
func TestLookup(t *testing.T) {