mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
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:
@@ -122,7 +122,7 @@ func Test_UserGrantPrepares(t *testing.T) {
|
||||
name: "prepareUserGrantQuery no result",
|
||||
prepare: prepareUserGrantQuery,
|
||||
want: want{
|
||||
sqlExpectations: mockQueries(
|
||||
sqlExpectations: mockQueriesScanErr(
|
||||
userGrantStmt,
|
||||
nil,
|
||||
nil,
|
||||
@@ -441,7 +441,7 @@ func Test_UserGrantPrepares(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*UserGrant)(nil),
|
||||
},
|
||||
{
|
||||
name: "prepareUserGrantsQuery no result",
|
||||
@@ -920,7 +920,7 @@ func Test_UserGrantPrepares(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*UserGrants)(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
Reference in New Issue
Block a user