diff --git a/pkg/storage/unified/testing/storage_backend.go b/pkg/storage/unified/testing/storage_backend.go index 6fbeceb68d2..37405e940e8 100644 --- a/pkg/storage/unified/testing/storage_backend.go +++ b/pkg/storage/unified/testing/storage_backend.go @@ -22,6 +22,7 @@ import ( "github.com/grafana/authlib/authn" "github.com/grafana/authlib/types" + "github.com/grafana/grafana/pkg/infra/db" "github.com/grafana/grafana/pkg/apimachinery/utils" "github.com/grafana/grafana/pkg/storage/unified/resource" "github.com/grafana/grafana/pkg/storage/unified/resourcepb" @@ -99,6 +100,10 @@ func RunStorageBackendTest(t *testing.T, newBackend NewBackendFunc, opts *TestOp } t.Run(tc.name, func(t *testing.T) { + if db.IsTestDbSQLite() { + t.Skip("Skipping tests on sqlite until channel notifier is implemented") + } + tc.fn(t, newBackend(context.Background()), opts.NSPrefix) }) } diff --git a/pkg/storage/unified/testing/storage_backend_sql_compatibility.go b/pkg/storage/unified/testing/storage_backend_sql_compatibility.go index 5e1423fa1ec..99ce4b8c08f 100644 --- a/pkg/storage/unified/testing/storage_backend_sql_compatibility.go +++ b/pkg/storage/unified/testing/storage_backend_sql_compatibility.go @@ -36,6 +36,10 @@ func NewTestSqlKvBackend(t *testing.T, ctx context.Context, withRvManager bool) KvStore: kv, } + if db.DriverName() == "sqlite3" { + kvOpts.UseChannelNotifier = true + } + if withRvManager { dialect := sqltemplate.DialectForDriver(db.DriverName()) rvManager, err := rvmanager.NewResourceVersionManager(rvmanager.ResourceManagerOptions{