Skip to content

Refactor Redis container initialization and disposal in integration tests - #8

Merged
Phelecks merged 2 commits into
mainfrom
sonar/fixture
Feb 7, 2026
Merged

Phelecks merged 2 commits into
mainfrom
sonar/fixture

Conversation

@Phelecks

@Phelecks Phelecks commented Feb 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings February 7, 2026 12:54
@Phelecks Phelecks self-assigned this Feb 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors Redis Testcontainers setup/teardown in the NUnit integration tests to simplify container initialization and adjust how the Redis ConnectionMultiplexer is stored/disposed across the test fixture lifetime.

Changes:

  • Updates Redis container creation to use a ContainerBuilder constructor with the image name.
  • Switches _mux from IConnectionMultiplexer to ConnectionMultiplexer and disposes it asynchronously in teardown.

Comment thread tests/DistributedNonce.Tests/DistributedNonceIntegrationTests.cs Outdated
@sonarqubecloud

sonarqubecloud Bot commented Feb 7, 2026

Copy link
Copy Markdown

@Phelecks
Phelecks merged commit c4b8d11 into main Feb 7, 2026
4 checks passed
@Phelecks
Phelecks deleted the sonar/fixture branch February 7, 2026 13:02
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