26 lines
458 B
Go
26 lines
458 B
Go
package bundb_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"gitea.dwysokinski.me/twhelp/sessions/internal/bundb"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestChecker_Name(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
assert.Equal(t, "db:ping", bundb.NewChecker(nil).Name())
|
|
}
|
|
|
|
func TestChecker_Check(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
if testing.Short() {
|
|
t.Skip("skipping long-running test")
|
|
}
|
|
|
|
assert.NoError(t, bundb.NewChecker(newDB(t)).Check(context.Background()))
|
|
}
|