Skip to content

Commit 812a786

Browse files
committed
update unit tests and linting
1 parent 4ac097b commit 812a786

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

coderd/idpsync/group.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ func (s AGPLIDPSync) SyncGroups(ctx context.Context, db database.Store, user dat
108108
// organization.
109109
orgSettings := make(map[uuid.UUID]GroupSyncSettings)
110110
for orgID := range userOrgs {
111-
def, _ := tx.GetDefaultOrganization(ctx)
112-
if def.ID == orgID {
113-
fmt.Println("as")
114-
}
115111
settings, err := s.GroupSyncSettings(ctx, orgID, tx)
116112
if err != nil {
117113
// TODO: This error is currently silent to org admins.

enterprise/coderd/idpsync_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func TestGetGroupSyncConfig(t *testing.T) {
4747
ctx := testutil.Context(t, testutil.WaitShort)
4848
dbresv := runtimeconfig.OrganizationResolver(user.OrganizationID, runtimeconfig.NewStoreResolver(db))
4949
entry := runtimeconfig.MustNew[*idpsync.GroupSyncSettings]("group-sync-settings")
50+
//nolint:gocritic // Requires system context to set runtime config
5051
err := entry.SetRuntimeValue(dbauthz.AsSystemRestricted(ctx), dbresv, &idpsync.GroupSyncSettings{Field: "august"})
5152
require.NoError(t, err)
5253

0 commit comments

Comments
 (0)