Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0944bf7

Browse files
Remove ErrorsWithInMemDB function and usage
The in-memory database has been removed, so ErrorsWithInMemDBis no longer needed. This removes:- The ErrorsWithInMemDB function definition from setup_test.go- The single usage of ErrorsWithInMemDB in dbauthz_test.goCo-authored-by: hugodutka <28019628+hugodutka@users.noreply.github.com>
1 parent2999996 commit0944bf7

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

‎coderd/database/dbauthz/dbauthz_test.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2878,7 +2878,6 @@ func (s *MethodTestSuite) TestSystemFunctions() {
28782878
dbm.EXPECT().GetParameterSchemasByJobID(gomock.Any(),jobID).Return([]database.ParameterSchema{},nil).AnyTimes()
28792879
check.Args(jobID).
28802880
Asserts(tpl,policy.ActionRead).
2881-
ErrorsWithInMemDB(sql.ErrNoRows).
28822881
Returns([]database.ParameterSchema{})
28832882
}))
28842883
s.Run("GetWorkspaceAppsByAgentIDs",s.Mocked(func(dbm*dbmock.MockStore,faker*gofakeit.Faker,check*expects) {

‎coderd/database/dbauthz/setup_test.go‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,6 @@ func (m *expects) ErrorsWithPG(err error) *expects {
436436
returnm.Errors(err)
437437
}
438438

439-
// ErrorsWithInMemDB is deprecated. The in-memory database has been removed.
440-
// This method is kept for backwards compatibility but does nothing.
441-
func (m*expects)ErrorsWithInMemDB(errerror)*expects {
442-
returnm
443-
}
444-
445439
func (m*expects)FailSystemObjectChecks()*expects {
446440
returnm.WithSuccessAuthorizer(func(ctx context.Context,subject rbac.Subject,action policy.Action,obj rbac.Object)error {
447441
ifobj.Type==rbac.ResourceSystem.Type {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp