Refactoring + disable cleanup tests for sqlite

This commit is contained in:
viktorstrate
2021-11-06 15:41:25 +01:00
parent 18b83dbbea
commit 12085698c8
13 changed files with 72 additions and 44 deletions

View File

@@ -67,7 +67,7 @@ func (r *mutationResolver) SetScannerConcurrentWorkers(ctx context.Context, work
return 0, errors.New("concurrent workers must at least be 1")
}
if workers > 1 && drivers.DatabaseDriver() == drivers.DatabaseDriverSqlite {
if workers > 1 && drivers.DatabaseDriverFromEnv() == drivers.SQLITE {
return 0, errors.New("multiple workers not supported for SQLite databases")
}