mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
RUN_POSTGRES_TESTS and RUN_MYSQL_TESTS enable them, as RUN_REDIS_TESTS does the Redis stores; each test gets a schema or database of its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
18 lines
476 B
Go
18 lines
476 B
Go
package postgres2
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/seaweedfs/seaweedfs/weed/filer/store_test"
|
|
)
|
|
|
|
func TestStoreConformance(t *testing.T) {
|
|
db := store_test.NewPostgresTestDatabase(t)
|
|
store := &PostgresStore2{}
|
|
if err := store.initialize("", "", true, db.User, db.Password, db.Hostname, db.Port, db.Database, db.Schema, db.SSLMode, "", "", "", "", false, 10, 0, 60); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer store.Shutdown()
|
|
store_test.TestFilerStoreConformance(t, store)
|
|
}
|