Skip to content

[Test] Cover message bus cleanup, Listen consumer, token refresh retry and async session asserts; fixes #406, #407, #408, #409 - #413

Merged
samatstariongroup merged 1 commit into
developmentfrom
GH406-409-test-coverage
Oct 22, 2026
Merged

samatstariongroup merged 1 commit into
developmentfrom
GH406-409-test-coverage

Conversation

@samatstariongroup

Copy link
Copy Markdown
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the COMET-SDK code style guidelines
  • I have provided test coverage for my change (where applicable)

Description

Adds tests for four coverage gaps. Only test code changes.

Each new test was checked by breaking the code it guards and confirming that the test fails.

Verification on top of #410 (NUnit 5): build has 0 errors; 2,454 tests pass and 0 fail, with the CI filter.

While writing the #408 test, I found two bugs in AuthenticationTokenRefreshService. They are filed as #411 and #412 and are not fixed here.

Closes #406, closes #407, closes #408, closes #409

🤖 Generated with Claude Code

…y and async session asserts; fixes #406, #407, #408, #409

- MessageBusTestFixture: disposing the last subscription removes the observable; resubscribing after dispose receives messages (#406)
- ThingMessageConsumerListenTestFixture: Listen pushes messages, reports shutdown as OperationCanceledException, detaches handlers on dispose (#407)
- AutomaticTokenRefreshServiceTestFixture: StartAsync retries a refresh after a transient failure (#408)
- SessionServiceTestFixtures: VerifyOpenSession awaits its async asserts (#409)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@samatstariongroup
samatstariongroup merged commit 7af2515 into development Oct 22, 2026
5 checks passed
@samatstariongroup
samatstariongroup deleted the GH406-409-test-coverage branch October 22, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant