Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Rename AnonymousCredential #15104

Merged
merged 6 commits into from
Jul 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing lint
  • Loading branch information
seankane-msft committed Jul 21, 2021
commit e5c6517b2867e432c244d6885dc5c8807ed05b05
7 changes: 5 additions & 2 deletions sdk/azcore/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,15 @@ func TestRequestSetBodyContentLengthHeader(t *testing.T) {
if err != nil {
t.Fatal(err)
}
buff := make([]byte, 768, 768)
buff := make([]byte, 768)
const buffLen = 768
for i := 0; i < buffLen; i++ {
buff[i] = 1
}
req.SetBody(NopCloser(bytes.NewReader(buff)), "application/octet-stream")
err = req.SetBody(NopCloser(bytes.NewReader(buff)), "application/octet-stream")
if err != nil {
t.Fatal(err)
}
if req.Header.Get(headerContentLength) != strconv.FormatInt(buffLen, 10) {
t.Fatalf("expected content-length %d, got %s", buffLen, req.Header.Get(headerContentLength))
}
Expand Down