chore: remove duplicate validate calls on same oauth token (#11598)

* chore: remove duplicate validate calls on same oauth token
This commit is contained in:
Steven Masley
2024-01-12 14:27:22 -06:00
committed by GitHub
parent 8181c9f349
commit 03ee63931c
4 changed files with 119 additions and 3 deletions

View File

@ -145,6 +145,7 @@ type Options struct {
WorkspaceAppsStatsCollectorOptions workspaceapps.StatsCollectorOptions
AllowWorkspaceRenames bool
NewTicker func(duration time.Duration) (<-chan time.Time, func())
}
// New constructs a codersdk client connected to an in-memory API instance.
@ -451,6 +452,7 @@ func NewOptions(t testing.TB, options *Options) (func(http.Handler), context.Can
StatsBatcher: options.StatsBatcher,
WorkspaceAppsStatsCollectorOptions: options.WorkspaceAppsStatsCollectorOptions,
AllowWorkspaceRenames: options.AllowWorkspaceRenames,
NewTicker: options.NewTicker,
}
}