Skip to content

Commit

Permalink
Modify adapter BadPort test
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit committed Jul 1, 2017
1 parent 6e170de commit 909a7e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter_test.go
Expand Up @@ -46,9 +46,9 @@ func TestAdapter(t *testing.T) {
}

func TestBadPort(t *testing.T) {
e := casbin.NewEnforcer("../rbac_model.conf", "../rbac_policy.csv")
a, _ := NewKVAdapter("127.0.0.1:9800")
err := a.SavePolicy(e.GetModel())
e := casbin.NewEnforcer("../rbac_model.conf", a)
err := e.LoadPolicy()
if err == nil {
t.Fatalf("err: %v", err)
}
Expand Down

0 comments on commit 909a7e4

Please sign in to comment.