mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 00:27:31 +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:
@@ -343,7 +343,7 @@ func Test_SessionsPrepare(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*Sessions)(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
@@ -368,7 +368,7 @@ func Test_SessionPrepare(t *testing.T) {
|
||||
name: "prepareSessionQuery no result",
|
||||
prepare: prepareSessionQueryTesting(t, ""),
|
||||
want: want{
|
||||
sqlExpectations: mockQueries(
|
||||
sqlExpectations: mockQueriesScanErr(
|
||||
expectedSessionQuery,
|
||||
nil,
|
||||
nil,
|
||||
@@ -460,7 +460,7 @@ func Test_SessionPrepare(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*Session)(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
Reference in New Issue
Block a user