Skip to content

Commit b89f062

Browse files
committed
compile fix
1 parent 6b3f865 commit b89f062

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy