diff --git a/command/agent/acl_endpoint_test.go b/command/agent/acl_endpoint_test.go index 515c80c1c8d7..0e52a08993cf 100644 --- a/command/agent/acl_endpoint_test.go +++ b/command/agent/acl_endpoint_test.go @@ -240,6 +240,11 @@ func TestHTTP_ACLTokenBootstrapOperator(t *testing.T) { if err != nil { t.Fatalf("err: %v", err) } + + // Since we're not actually writing this HTTP request, we have + // to manually set ContentLength + req.ContentLength = -1 + respW := httptest.NewRecorder() // Make the request obj, err := s.Server.ACLTokenBootstrap(respW, req)