Fix broken test case
This commit is contained in:
parent
1dedf8d0e3
commit
dd94e8e689
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue