Compare commits

...
Author SHA1 Message Date
Chris Lu 0343656cdb Merge branch 'master' into fix-headbucket-test-body 2026-10-22 16:27:17 -07:00
Chris LuandDevin 3b5fcae07f s3api: drop error-body assertions from the HeadBucket test
HEAD responses carry no body since WriteResponse skips it, so the
status code alone distinguishes a failed lookup from a missing bucket.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-22 05:33:47 -07:00
+1 -1
View File
@@ -82,7 +82,7 @@ func TestHeadBucketSeparatesLookupFailureFromMissingBucket(t *testing.T) {
s3a.HeadBucketHandler(rr, req)
if rr.Code != tc.wantCode {
t.Fatalf("status = %d, want %d: %s", rr.Code, tc.wantCode, rr.Body.String())
t.Fatalf("status = %d, want %d", rr.Code, tc.wantCode)
}
// HEAD returns the status without an XML error body, including for
// lookup failures and missing buckets.