diff --git a/internal/provider/provider_options_test.go b/internal/provider/provider_options_test.go index b59da625f..1eb50b9e4 100644 --- a/internal/provider/provider_options_test.go +++ b/internal/provider/provider_options_test.go @@ -18,7 +18,7 @@ func TestNewProvider(t *testing.T) { check.NoError(t, err) fsys := newFsys() t.Run("invalid", func(t *testing.T) { - // Empty dialect not allowed + // Nil storageFactory not allowed _, err = NewProvider(nil, db, fsys) check.HasError(t, err) // Nil db not allowed @@ -37,13 +37,13 @@ func TestNewProvider(t *testing.T) { check.Equal(t, "table must not be empty", err.Error()) }) t.Run("valid", func(t *testing.T) { - // Valid dialect, db, and fsys allowed + // Valid storageFactory, db, and fsys allowed _, err = NewProvider(storage.Sqlite3, db, fsys) check.NoError(t, err) - // Valid dialect, db, fsys, and table name allowed + // Valid storageFactory, db, fsys, and table name allowed _, err = NewProvider(storage.Sqlite3, db, fsys, WithTableName("foo")) check.NoError(t, err) - // Valid dialect, db, fsys, and verbose allowed + // Valid storageFactory, db, fsys, and verbose allowed _, err = NewProvider(storage.Sqlite3, db, fsys, WithVerbose()) check.NoError(t, err) })