Browse Source
The test used assert.NoError (non-fatal) for GetBucketCors, then immediately accessed getResp.CORSRules. When the API returns an error, getResp is nil causing a panic. Switch to require.NoError/NotNil/Len so the test stops before dereferencing a nil response.pull/8559/head
1 changed files with 4 additions and 4 deletions
Loading…
Reference in new issue