Files
seaweedfs/weed/filer/postgres2/postgres2_store_test.go
T
Chris LuandClaude Opus 5.5 19573691ca filer/postgres: postgres and postgres2 share their connection setup
ReadConnection reads the settings and their defaults, Connection.Open
opens the store's pools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
2026-12-01 16:35:16 -08:00

19 lines
494 B
Go

package postgres2
import (
"testing"
"github.com/seaweedfs/seaweedfs/weed/filer/postgres"
"github.com/seaweedfs/seaweedfs/weed/filer/store_test"
)
func TestStoreConformance(t *testing.T) {
store := &PostgresStore2{}
conn := postgres.Connection{DSNOptions: store_test.NewPostgresTestDatabase(t), MaxIdle: 10, MaxLifetimeSeconds: 60}
if err := store.initialize("", "", true, conn); err != nil {
t.Fatal(err)
}
defer store.Shutdown()
store_test.TestFilerStoreConformance(t, store)
}