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

Commitb89f062

Browse files
committed
compile fix
1 parent6b3f865 commitb89f062

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎coderd/database/dbauthz/dbauthz_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func (s *MethodTestSuite) TestAuditLogs() {
263263
_=dbgen.AuditLog(s.T(),db, database.AuditLog{})
264264
_=dbgen.AuditLog(s.T(),db, database.AuditLog{})
265265
check.Args(database.GetAuditLogsOffsetParams{
266-
Limit:10,
266+
LimitOpt:10,
267267
}).Asserts(rbac.ResourceAuditLog,policy.ActionRead)
268268
}))
269269
}

‎coderd/database/dbgen/dbgen_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestGenerator(t *testing.T) {
1919
t.Parallel()
2020
db:=dbmem.New()
2121
_=dbgen.AuditLog(t,db, database.AuditLog{})
22-
logs:=must(db.GetAuditLogsOffset(context.Background(), database.GetAuditLogsOffsetParams{Limit:1}))
22+
logs:=must(db.GetAuditLogsOffset(context.Background(), database.GetAuditLogsOffsetParams{LimitOpt:1}))
2323
require.Len(t,logs,1)
2424
})
2525

‎enterprise/audit/backends/postgres_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ func TestPostgresBackend(t *testing.T) {
3030
require.NoError(t,err)
3131

3232
got,err:=db.GetAuditLogsOffset(ctx, database.GetAuditLogsOffsetParams{
33-
Offset:0,
34-
Limit:1,
33+
OffsetOpt:0,
34+
LimitOpt:1,
3535
})
3636
require.NoError(t,err)
3737
require.Len(t,got,1)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp