From 5aa69827f82662cef49b3fc10b105fff25fbc4a5 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Wed, 21 Jan 2015 14:12:18 -0800 Subject: [PATCH] agent: fix test --- command/agent/agent_endpoint_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/agent/agent_endpoint_test.go b/command/agent/agent_endpoint_test.go index 8e0fbe4f9a..0387f38901 100644 --- a/command/agent/agent_endpoint_test.go +++ b/command/agent/agent_endpoint_test.go @@ -542,6 +542,9 @@ func TestHTTPAgent_ServiceMaintenanceEndpoint_BadRequest(t *testing.T) { // Fails when bad service ID provided req, _ = http.NewRequest("PUT", "/v1/agent/service/maintenance/_nope_?enable=true", nil) resp = httptest.NewRecorder() + if _, err := srv.AgentServiceMaintenance(resp, req); err != nil { + t.Fatalf("err: %s", err) + } if resp.Code != 404 { t.Fatalf("expected 404, got %d", resp.Code) }