mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:47:32 +00:00
feat(storage): read only transactions (#6417)
feat(storage): read only transactions for queries (#6415) * fix: tests * bastle wie en grosse * fix(database): scan as callback * fix tests * fix merge failures * remove as of system time * refactor: remove unused test * refacotr: remove unused lines
This commit is contained in:
@@ -144,7 +144,7 @@ func Test_IDPPrepares(t *testing.T) {
|
||||
name: "prepareIDPByIDQuery no result",
|
||||
prepare: prepareIDPByIDQuery,
|
||||
want: want{
|
||||
sqlExpectations: mockQuery(
|
||||
sqlExpectations: mockQueryScanErr(
|
||||
regexp.QuoteMeta(idpQuery),
|
||||
nil,
|
||||
nil,
|
||||
@@ -341,7 +341,7 @@ func Test_IDPPrepares(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*IDP)(nil),
|
||||
},
|
||||
{
|
||||
name: "prepareIDPsQuery no result",
|
||||
@@ -728,7 +728,7 @@ func Test_IDPPrepares(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*IDPs)(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
Reference in New Issue
Block a user