fix data format test

This commit is contained in:
Alex Dadgar 2016-08-16 17:53:49 -07:00
parent 578171e7cb
commit f45941a11a
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func TestInvalidJSONTemplate(t *testing.T) {
t.Fatalf("err: %v", err)
}
_, err = fm.TransformData(tData)
if !strings.Contains(err.Error(), "foo is not a field of struct type command.testData") {
if !strings.Contains(err.Error(), "can't evaluate field foo") {
t.Fatalf("expected invalid template error, got: %s", err.Error())
}