755b479be4
* unified-storage: update resource_history_update_rv.sql to populate key_path in resource_history
21 lines
552 B
Go
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)
|
|
}
|