chore(canary): align e2e + handler tests with mysqlEnabled signature

Upstream 8d2599c0 added a mysqlEnabled parameter to token.NewHandler and
took a long line over the limit in handler_test. Pass the parameter from
the e2e stack (true: integration test exercises mysql token creation) and
reflow the long handler_test return so golines is happy.
This commit is contained in:
CarterPerez-dev 2026-05-17 22:55:28 -04:00
parent 8d2599c01a
commit 4b54c1b825
2 changed files with 11 additions and 1 deletions

View File

@ -160,6 +160,7 @@ func setupE2EStack(t *testing.T) *e2eStack {
eventRepo,
eventSvc,
logger,
true,
)
r := chi.NewRouter()

View File

@ -462,7 +462,16 @@ func newManageHandler(
BaseURL: "https://canary.example.com",
ManageURL: "https://canary.example.com",
})
return token.NewHandler(svc, nil, nil, eq, dc, quietHandlerLogger(), false), repo
return token.NewHandler(
svc,
nil,
nil,
eq,
dc,
quietHandlerLogger(),
false,
),
repo
}
func seedToken(t *testing.T, repo *fakeRepo, manageID string) *token.Token {