Move stuff around

This commit is contained in:
binwiederhier
2026-03-19 21:46:52 -04:00
parent a1b403d23c
commit d86e20173c
8 changed files with 396 additions and 396 deletions
+2 -2
View File
@@ -197,7 +197,7 @@ func TestS3Store_Sync_SkipsRecentFiles(t *testing.T) {
func newTestS3Store(t *testing.T, server *httptest.Server, bucket, prefix string, totalSizeLimit int64) *Store {
t.Helper()
host := strings.TrimPrefix(server.URL, "https://")
backend := newS3Backend(&s3.Client{
backend := newS3Backend(s3.New(&s3.Config{
AccessKey: "AKID",
SecretKey: "SECRET",
Region: "us-east-1",
@@ -206,7 +206,7 @@ func newTestS3Store(t *testing.T, server *httptest.Server, bucket, prefix string
Prefix: prefix,
PathStyle: true,
HTTPClient: server.Client(),
})
}))
cache, err := newStore(backend, totalSizeLimit, nil)
require.Nil(t, err)
t.Cleanup(func() { cache.Close() })