Skip to content

Conversation

@tiginamaria
Copy link
Contributor

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

TestsPassed ❌️SkippedFailedTime ⏱
JUnit Test Report
TestResultTime ⏱
No test annotations available

fun `addPrompt should send notification`() = runTest {
// Configure notification handler
var promptListChangedNotificationReceived = false
val notifications = mutableListOf<PromptListChangedNotification>()
Copy link
Contributor

@kpavlov kpavlov Dec 4, 2025

Choose a reason for hiding this comment

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

Let's use a thread-safe collection here and in similar places. Since it's JVM test we may use ConcurrentLinkedQueue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's single-threaded, only one client thread can write there, no?

@kpavlov kpavlov force-pushed the tigina/notification-tests-fix branch from 6f35f8f to a5179df Compare December 5, 2025 17:10
@kpavlov
Copy link
Contributor

kpavlov commented Dec 5, 2025

@tiginamaria , let's run lint on ServerResourcesNotificationSubscribeTest.kt

@kpavlov kpavlov added the tests label Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants