mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
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
19 lines
494 B
Go
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)
|
|
}
|