30 lines
590 B
Go
30 lines
590 B
Go
|
package adapter_test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"gitea.dwysokinski.me/twhelp/corev3/internal/adapter/adaptertest"
|
||
|
)
|
||
|
|
||
|
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()
|
||
|
return newBunDBRepositories(t, postgres.NewBunDB(t))
|
||
|
})
|
||
|
}
|
||
|
|
||
|
func TestServerBunRepository_SQLite(t *testing.T) {
|
||
|
t.Parallel()
|
||
|
|
||
|
testServerRepository(t, func(t *testing.T) repositories {
|
||
|
t.Helper()
|
||
|
return newBunDBRepositories(t, adaptertest.NewBunDBSQLite(t))
|
||
|
})
|
||
|
}
|