Skip to content

Conversation

@niemyjski
Copy link
Member

No description provided.

Use async unsubscribe with a bounded timeout to prevent hanging
Uses fire and forget unsubscribe to prevent potential hanging issues.

Adds unique topic names to Redis tests to prevent interference
between tests.
Adds try-catch blocks when unsubscribing from Redis topics to prevent potential unhandled exceptions from causing issues, particularly in test environments where flaky behavior might occur. Logs any exceptions encountered during the unsubscribe process for better debugging.
Comment on lines +785 to +788
catch (Exception ex)
{
_logger.LogError(ex, "Error unsubscribing from topic {Topic}: {Message}", GetTopicName(), ex.Message);
}
@niemyjski
Copy link
Member Author

@copilot Please run tests multiple times and find the root cause of why there are test failures. The tests always pass locally but fail on the ci so there it's resource bound.

Copy link

Copilot AI commented Jan 4, 2026

@niemyjski I've opened a new pull request, #130, to work on those changes. Once the pull request is ready, I'll request review from you.

@niemyjski niemyjski merged commit a579c66 into main Jan 5, 2026
3 of 6 checks passed
@niemyjski niemyjski deleted the bugfix/flakey-tests branch January 5, 2026 20:37
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