fix: resolve all linting errors
Some checks failed
CI / Test (pull_request) Failing after 18s
CI / Lint (pull_request) Successful in 17s
CI / Build (pull_request) Successful in 13s
CI / Format Check (pull_request) Successful in 2s

- Use typed context key instead of string in errorbus test to avoid collisions
- Remove unused imports (health.HealthChecker, trace.TracerProvider) from test files
- Simplify interface verification checks (removed unnecessary type assertions)

All linting errors resolved. make lint now passes.
This commit is contained in:
2025-11-05 21:14:00 +01:00
parent 7ffacb6620
commit 3bc37dd48c
3 changed files with 9 additions and 7 deletions

View File

@@ -106,7 +106,9 @@ func TestChannelBus_Publish_WithContext(t *testing.T) {
bus := NewChannelBus(mockLogger, 10)
testErr := errors.New("test error")
ctx := context.WithValue(context.Background(), "request_id", "test-request-id")
type contextKey string
const requestIDKey contextKey = "request_id"
ctx := context.WithValue(context.Background(), requestIDKey, "test-request-id")
bus.Publish(ctx, testErr)