Skip to content

Commit d976559

Browse files
starbopsclaude
andcommitted
fix(tests): resolve code formatting issues to pass CI lint checks
- Apply gofmt to tests/testutil/database.go to fix spacing and indentation - Resolve CI lint job failure that was blocking PR #61 - All local validation now passes: tests, lint, and build This fixes the specific formatting issues detected by CI's gofmt check. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent eff71a2 commit d976559

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/testutil/database.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,20 +338,20 @@ func getEffectiveHost(configuredHost string) string {
338338
if os.Getenv("CI") == "true" {
339339
return configuredHost
340340
}
341-
341+
342342
// For local development, if host is localhost, use IPv4 explicitly
343343
// to avoid macOS resolving to IPv6 ::1 which Docker containers can't bind to
344344
if configuredHost == "localhost" {
345345
return "127.0.0.1"
346346
}
347-
347+
348348
return configuredHost
349349
}
350350

351351
// isDatabaseAvailable checks if the test database is available
352352
func isDatabaseAvailable(cfg *config.Config) bool {
353353
effectiveHost := getEffectiveHost(cfg.Database.Host)
354-
354+
355355
connStr := fmt.Sprintf("host=%s port=%s user=%s password=%s dbname=%s sslmode=%s",
356356
effectiveHost, cfg.Database.Port, cfg.Database.User,
357357
cfg.Database.Password, cfg.Database.Database, cfg.Database.SSLMode)
@@ -463,11 +463,11 @@ func WithTestRedisClient(t *testing.T, testFn func(*queue.RedisClient)) {
463463
// IsRedisAvailable checks if Redis is available for testing
464464
func IsRedisAvailable() bool {
465465
cfg := GetTestConfig()
466-
466+
467467
// Update Redis config with effective host for connection
468468
redisConfig := cfg.Redis
469469
redisConfig.Host = getEffectiveHost(cfg.Redis.Host)
470-
470+
471471
client, err := queue.NewRedisClient(&redisConfig, slog.Default())
472472
if err != nil {
473473
return false

0 commit comments

Comments
 (0)