More tests, better errors.

This commit is contained in:
jregan
2019-11-26 18:13:15 -08:00
parent a2b84fce86
commit f3e735153f
22 changed files with 112 additions and 59 deletions

View File

@@ -51,7 +51,7 @@ path: jsonpatch.json
if err == nil {
t.Fatalf("expected error")
}
if !strings.Contains(err.Error(), "cannot read file \"/app/jsonpatch.json\"") {
if !strings.Contains(err.Error(), "'/app/jsonpatch.json' doesn't exist") {
t.Fatalf("unexpected err: %v", err)
}
}