add CORS tests (#7001)

* add CORS tests

* parallel tests

* Always attempt compaction when compactSnapshots is called

* start servers

* fix port

* revert

* debug ports

* fix ports

* debug

* Update s3tests.yml

* Update s3tests.yml

* Update s3tests.yml

* Update s3tests.yml

* Update s3tests.yml
This commit is contained in:
Chris Lu
2025-07-19 23:56:17 -07:00
committed by GitHub
parent 12f50d37fa
commit 530b6e5ef1
2 changed files with 598 additions and 29 deletions

View File

@@ -138,9 +138,8 @@ func (r *LockRing) compactSnapshots() {
r.Lock()
defer r.Unlock()
if r.lastCompactTime.After(r.lastUpdateTime) {
return
}
// Always attempt compaction when called, regardless of lastCompactTime
// This ensures proper cleanup even with multiple concurrent compaction requests
ts := time.Now()
// remove old snapshots