From 9b161bdee3654f2922e7f637408721e43d07e215 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Wed, 10 May 2017 08:56:16 +0200 Subject: [PATCH] test: use isPermissionDenied --- command/agent/agent_endpoint_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/agent_endpoint_test.go b/command/agent/agent_endpoint_test.go index 2cf4e6d8d..f56ad5add 100644 --- a/command/agent/agent_endpoint_test.go +++ b/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) }