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
+2 -2
View File
@@ -16,7 +16,7 @@ func TestIntegrationGetOrCreateOrg(t *testing.T) {
}
ss, _ := InitTestDB(t)
err := ss.WithNewDbSession(context.Background(), func(sess *DBSession) error {
err := ss.WithDbSession(context.Background(), func(sess *DBSession) error {
// Create the org only:
ss.cfg.AutoAssignOrg = true
ss.cfg.DisableInitAdminCreation = true
@@ -28,7 +28,7 @@ func TestIntegrationGetOrCreateOrg(t *testing.T) {
})
require.NoError(t, err)
err = ss.WithNewDbSession(context.Background(), func(sess *DBSession) error {
err = ss.WithDbSession(context.Background(), func(sess *DBSession) error {
// Run it a second time and verify that it finds the org that was
// created above.
gotOrgId, err := ss.getOrCreateOrg(sess, mainOrgName)