Skip to content

fix: template-redis-enterprise feature gate and example API updates#204

Merged
joshrotenberg merged 1 commit intomainfrom
fix/dave-pr-200-fixes
Jan 5, 2026
Merged

fix: template-redis-enterprise feature gate and example API updates#204
joshrotenberg merged 1 commit intomainfrom
fix/dave-pr-200-fixes

Conversation

@joshrotenberg
Copy link
Copy Markdown
Owner

This PR fixes issues identified by @davehorner in PR #200.

Changes

  • src/lib.rs & src/template.rs: Add template-redis-enterprise to feature gate cfg attributes so the template module compiles when only that feature is enabled
  • examples/testing_basics.rs: Update to use current API signatures:
    • ExecCommand::new(container, command_vec) (2 args, not 1)
    • LogsCommand returns struct with .stdout field
    • RunCommand::cmd() takes Vec<String>
  • examples/test_fixtures.rs: Add dynamic port mapping (port_dyn) and PostgreSQL readiness probe to avoid port collisions and race conditions
  • Cargo.toml: Add missing test_sentinel example entry

Testing

  • All 755 unit tests pass
  • All examples compile with cargo build --examples --all-features
  • Example tests compile with cargo test --example testing_basics --no-run

Closes #200 (supersedes Dave's PR with formatting fixes applied)

- Add template-redis-enterprise to feature gate cfg in src/lib.rs and src/template.rs
- Update testing_basics.rs to use current ExecCommand and LogsCommand API signatures
- Add dynamic port mapping and readiness probe for Postgres in test_fixtures.rs
- Add test_sentinel example entry to Cargo.toml

Co-authored-by: David Horner <davehorner@users.noreply.github.com>
@joshrotenberg joshrotenberg force-pushed the fix/dave-pr-200-fixes branch from d72ce89 to de5605c Compare January 5, 2026 18:01
@joshrotenberg joshrotenberg merged commit c5c9685 into main Jan 5, 2026
13 checks passed
@joshrotenberg joshrotenberg deleted the fix/dave-pr-200-fixes branch January 5, 2026 18:30
@github-actions github-actions Bot mentioned this pull request Jan 5, 2026
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