2023-12-24 10:44:20 +00:00
|
|
|
package adapter_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2024-01-14 10:04:17 +00:00
|
|
|
"gitea.dwysokinski.me/twhelp/corev3/internal/bun/buntest"
|
2023-12-24 10:44:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestServerBunRepository_Postgres(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
if testing.Short() {
|
|
|
|
t.Skip("skipping long-running test")
|
|
|
|
}
|
|
|
|
|
|
|
|
testServerRepository(t, func(t *testing.T) repositories {
|
|
|
|
t.Helper()
|
2024-01-14 10:04:17 +00:00
|
|
|
return newBunDBRepositories(t, postgres.NewDB(t))
|
2023-12-24 10:44:20 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestServerBunRepository_SQLite(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
testServerRepository(t, func(t *testing.T) repositories {
|
|
|
|
t.Helper()
|
2024-01-14 10:04:17 +00:00
|
|
|
return newBunDBRepositories(t, buntest.NewSQLiteDB(t))
|
2023-12-24 10:44:20 +00:00
|
|
|
})
|
|
|
|
}
|