Files
grafana/pkg/storage/unified/sql/test/benchmark_test.go
T
Will Assis 755b479be4 unified-storage: make sql backend update key_path for kv store (#114879)
* unified-storage: update resource_history_update_rv.sql to populate key_path in resource_history
2025-12-10 07:06:06 -05:00

21 lines
552 B
Go

package test
import (
"testing"
"time"
"github.com/grafana/grafana/pkg/infra/db"
test "github.com/grafana/grafana/pkg/storage/unified/testing"
"github.com/grafana/grafana/pkg/util/testutil"
)
func TestIntegrationBenchmarkSQLStorageBackend(t *testing.T) {
testutil.SkipIntegrationTestInShortMode(t)
opts := test.DefaultBenchmarkOptions()
if db.IsTestDbSQLite() {
opts.Concurrency = 1 // to avoid SQLite database is locked error
}
backend, _ := newTestBackend(t, true, 2*time.Millisecond)
test.BenchmarkStorageBackend(t, backend, opts)
}