Skip to content

Commit

Permalink
more missed factories
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Lacal <[email protected]>
  • Loading branch information
EnriqueL8 committed Sep 17, 2024
1 parent 6bd9430 commit b46f518
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/database/difactory/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,20 @@ func TestGetPluginUnknown(t *testing.T) {
assert.Regexp(t, "FF10122", err)
}

func TestGetPlugin(t *testing.T) {
func TestGetPluginPostgres(t *testing.T) {
ctx := context.Background()
plugin, err := GetPlugin(ctx, "postgres")
assert.NoError(t, err)
assert.NotNil(t, plugin)
}

func TestGetPluginSQLite(t *testing.T) {
ctx := context.Background()
plugin, err := GetPlugin(ctx, "sqlite3")
assert.NoError(t, err)
assert.NotNil(t, plugin)
}

var root = config.RootSection("di")

func TestInitConfig(t *testing.T) {
Expand Down

0 comments on commit b46f518

Please sign in to comment.