2024-01-16 06:28:03 +00:00
|
|
|
package adapter_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2024-04-06 04:32:29 +00:00
|
|
|
"gitea.dwysokinski.me/twhelp/core/internal/bun/buntest"
|
2024-01-16 06:28:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestPlayerSnapshotBunRepository_Postgres(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
if testing.Short() {
|
|
|
|
t.Skip("skipping long-running test")
|
|
|
|
}
|
|
|
|
|
|
|
|
testPlayerSnapshotRepository(t, func(t *testing.T) repositories {
|
|
|
|
t.Helper()
|
|
|
|
return newBunDBRepositories(t, postgres.NewDB(t))
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestPlayerSnapshotBunRepository_SQLite(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
testPlayerSnapshotRepository(t, func(t *testing.T) repositories {
|
|
|
|
t.Helper()
|
|
|
|
return newBunDBRepositories(t, buntest.NewSQLiteDB(t))
|
|
|
|
})
|
|
|
|
}
|