Skip to content

Commit

Permalink
test: manually set contentlength in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Jun 2, 2022
1 parent d716f3f commit 9ca6c63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions command/agent/acl_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ca6c63

Please sign in to comment.