Browse Source

test: use isPermissionDenied

pull/3027/merge
Frank Schroeder 8 years ago committed by Frank Schröder
parent
commit
a60f508880
  1. 2
      command/agent/agent_endpoint_test.go

2
command/agent/agent_endpoint_test.go

@ -1707,7 +1707,7 @@ func TestAgent_Monitor_ACLDeny(t *testing.T) {
// Try without a token.
req, _ := http.NewRequest("GET", "/v1/agent/monitor", nil)
if _, err := srv.AgentMonitor(nil, req); err != errPermissionDenied {
if _, err := srv.AgentMonitor(nil, req); !isPermissionDenied(err) {
t.Fatalf("err: %v", err)
}

Loading…
Cancel
Save