mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove unused method in db.DB (#90433)
* remove unused method * clean up tests
This commit is contained in:
@@ -16,8 +16,7 @@ func TestRetryingDisabled(t *testing.T) {
|
||||
require.Equal(t, 0, store.dbCfg.QueryRetries)
|
||||
|
||||
funcToTest := map[string]func(ctx context.Context, callback DBTransactionFunc) error{
|
||||
"WithDbSession": store.WithDbSession,
|
||||
"WithNewDbSession": store.WithNewDbSession,
|
||||
"WithDbSession": store.WithDbSession,
|
||||
}
|
||||
|
||||
for name, f := range funcToTest {
|
||||
@@ -67,8 +66,7 @@ func TestRetryingOnFailures(t *testing.T) {
|
||||
store.dbCfg.QueryRetries = 5
|
||||
|
||||
funcToTest := map[string]func(ctx context.Context, callback DBTransactionFunc) error{
|
||||
"WithDbSession": store.WithDbSession,
|
||||
"WithNewDbSession": store.WithNewDbSession,
|
||||
"WithDbSession": store.WithDbSession,
|
||||
}
|
||||
|
||||
for name, f := range funcToTest {
|
||||
|
||||
Reference in New Issue
Block a user