This repository has been archived on 2024-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
core-old/internal/bundb/checker_test.go
Dawid Wysokiński 3b4f42e344
All checks were successful
continuous-integration/drone/push Build is passing
feat: update data - integration tests (#186)
Reviewed-on: twhelp/core#186
2023-02-16 06:37:48 +00:00

27 lines
525 B
Go

package bundb_test
import (
"context"
"testing"
"gitea.dwysokinski.me/twhelp/core/internal/bundb"
"gitea.dwysokinski.me/twhelp/core/internal/bundb/bundbtest"
"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(bundbtest.NewDB(t)).Check(context.Background()))
}