mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Make Cfg field private in SQLStore (#85593)
* make cfg private in sqlstore * fix db init in tests * fix case * fix folder test init * fix imports * make another Cfg private * remove another Cfg * remove unused variable * use store cfg, it has side-effects * fix mutated cfg in tests
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func TestRetryingDisabled(t *testing.T) {
|
||||
store := InitTestDB(t)
|
||||
store, _ := InitTestDB(t)
|
||||
require.Equal(t, 0, store.dbCfg.QueryRetries)
|
||||
|
||||
funcToTest := map[string]func(ctx context.Context, callback DBTransactionFunc) error{
|
||||
@@ -63,7 +63,7 @@ func TestRetryingDisabled(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRetryingOnFailures(t *testing.T) {
|
||||
store := InitTestDB(t)
|
||||
store, _ := InitTestDB(t)
|
||||
store.dbCfg.QueryRetries = 5
|
||||
|
||||
funcToTest := map[string]func(ctx context.Context, callback DBTransactionFunc) error{
|
||||
|
||||
Reference in New Issue
Block a user