Skip to content

Move session defaults into the test helper - #501

Merged
SaladDay merged 1 commit into
mainfrom
refactor/session-test-defaults
Oct 7, 2026
Merged

SaladDay merged 1 commit into
mainfrom
refactor/session-test-defaults

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

NewSessionWithOwner substituted a no-op logger and a fresh registry when given nil. Its only production caller, the gateway handler, can't pass nil: NewHandler panics without a registry and defaults the logger. Only tests relied on the fallback, so it moves into the test helper NewSession. The one test that calls NewSessionWithOwner directly now passes a no-op logger.

Checks: gofmt, go vet ./services/core/..., go test -race ./services/core/internal/runtimegateway/.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@SaladDay
SaladDay merged commit d75424c into main Oct 7, 2026
19 checks passed
@SaladDay
SaladDay deleted the refactor/session-test-defaults branch October 7, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant