Fix broken test case

This commit is contained in:
vishalnayak 2016-03-14 18:40:12 -04:00
parent 1dedf8d0e3
commit dd94e8e689
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@ func TestSysAudit(t *testing.T) {
var actual map[string]interface{}
expected := map[string]interface{}{
"noop/": map[string]interface{}{
"path": "noop/",
"type": "noop",
"description": "",
"options": map[string]interface{}{},
@ -31,7 +32,7 @@ func TestSysAudit(t *testing.T) {
testResponseStatus(t, resp, 200)
testResponseBody(t, resp, &actual)
if !reflect.DeepEqual(actual, expected) {
t.Fatalf("bad: %#v", actual)
t.Fatalf("bad: expected:\n%#v actual:\n%#v\n", expected, actual)
}
}

View File

@ -635,6 +635,7 @@ func TestSystemBackend_auditTable(t *testing.T) {
exp := map[string]interface{}{
"foo/": map[string]interface{}{
"path": "foo/",
"type": "noop",
"description": "testing",
"options": map[string]string{