Chore: Remove unused method in db.DB (#90433)

* remove unused method

* clean up tests
This commit is contained in:
Serge Zaitsev
2024-07-17 08:17:23 +02:00
committed by GitHub
parent c13002ee8c
commit f5da9edbba
4 changed files with 4 additions and 18 deletions

View File

@@ -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 {