Fix broken test case

This commit is contained in:
vishalnayak 2016-03-10 20:06:22 -05:00
parent baeb602fd8
commit c86f409ca1

View File

@ -950,7 +950,7 @@ func TestCore_HandleLogin_AuditTrail(t *testing.T) {
if auth.ClientToken != clientToken { if auth.ClientToken != clientToken {
t.Fatalf("bad client token: %#v", auth) t.Fatalf("bad client token: %#v", auth)
} }
if len(auth.Policies) != 2 || auth.Policies[0] != "foo" || auth.Policies[1] != "bar" { if len(auth.Policies) != 3 || auth.Policies[0] != "foo" || auth.Policies[1] != "bar" || auth.Policies[2] != "default" {
t.Fatalf("bad: %#v", auth) t.Fatalf("bad: %#v", auth)
} }
if len(noop.RespReq) != 2 || !reflect.DeepEqual(noop.RespReq[1], lreq) { if len(noop.RespReq) != 2 || !reflect.DeepEqual(noop.RespReq[1], lreq) {