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

Commitb2cfd8f

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 parent6340f9c commitb2cfd8f

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
@@ -2946,7 +2946,6 @@ func (s *MethodTestSuite) TestSystemFunctions() {
29462946
dbm.EXPECT().GetParameterSchemasByJobID(gomock.Any(),jobID).Return([]database.ParameterSchema{},nil).AnyTimes()
29472947
check.Args(jobID).
29482948
Asserts(tpl,policy.ActionRead).
2949-
ErrorsWithInMemDB(sql.ErrNoRows).
29502949
Returns([]database.ParameterSchema{})
29512950
}))
29522951
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