Skip to content

Fix error handling in redisurl + migrate tests to stdlib#22

Merged
AObuchow merged 6 commits intomasterfrom
fix-redisurl-error-handling
Apr 1, 2026
Merged

Fix error handling in redisurl + migrate tests to stdlib#22
AObuchow merged 6 commits intomasterfrom
fix-redisurl-error-handling

Conversation

@doron-sincere
Copy link
Copy Markdown
Member

@doron-sincere doron-sincere commented Oct 24, 2025

redisurl error handling

  • Return nil on parse/dial failures
  • Return connection with error after successful dial (allows caller cleanup and retry logic)
  • Support newer Redis AUTH error messages
  • Add error case tests

test modernization

  • Migrate all ginkgo/gomega tests to stdlib testing with t.Run subtests
  • Delete ginkgo suite boilerplate
  • Apply range-over-integers modernization (4 loops)
  • Use t.Cleanup for auth setup/teardown
  • Bump to Go 1.22, remove ginkgo/gomega deps
  • Upgrade redigo v1.8.8 → v1.9.3

- return explicit error values instead of naked returns
- handle error from SELECT command when switching databases
- return nil on parse/dial errors for consistency
- return connection with error after dial for caller-managed cleanup
- add support for newer Redis AUTH error message
- use errors.Is() for error checking in pool
- add tests for error cases
- rewrite pool, connection, and convert tests using t.Run subtests
- delete redis_suite_test.go ginkgo boilerplate
- apply range-over-integers modernization (4 loops)
- use t.Cleanup for auth setup/teardown
@doron-sincere doron-sincere changed the title Fix error handling in redisurl package Fix error handling in redisurl + migrate tests to stdlib Mar 27, 2026
@AObuchow AObuchow merged commit 61ce48c into master Apr 1, 2026
1 check passed
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.

2 participants