Skip to content

Make `objectstore.TestS3SessionSetup()` test less racy

Ash McKenzie requested to merge ashmckenzie/improve-s3-session-test into master

What does this MR do and why?

This MR attempts to improve the objectstore.TestS3SessionSetup() test by ensuring read attempts against sessionCache.sessions use the sync.Mutex to lock and unlock.

Closes: Fix racy `objectstore.TestS3SessionSetup()` tes... (#440937 - closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports