You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix SharedNodeStore test suite unhandled promise rejections #258
This indicates a systemic problem with error handling in the coordinator's cancellation flow. These errors appear to be pre-existing and were not introduced by recent fixes.
Impact
Test suite produces misleading error output
Makes it difficult to identify real test failures
Indicates potential issues with promise cancellation patterns in production code
Root Cause
When PersistenceCoordinator.cancelPending() is called (e.g., in test cleanup), it rejects pending promises with an error. However, these rejections are not being caught by the test code.
Solution
Add proper catch handlers for cancelled operations in tests
Investigate if cancellation errors should be thrown or silently handled
Consider using a custom error type (OperationCancelledError) that tests can filter
Review all test cleanup code that calls cancelPending()
Testing
Run the SharedNodeStore test suite and verify 0 unhandled rejections
Ensure tests still properly detect real errors (not just masking them)
Priority
Medium - Test quality issue that doesn't affect functionality but reduces confidence in test suite
Activity
Implement code review recommendations for issue #233
Fix UI & Service Integration Issues (ALL 14 test failures fixed - 100…
Fix unhandled promise rejections in test suite (closes #258)
Fix UI & Service Integration Issues (ALL 14 test failures fixed - 100…
Fix unhandled promise rejections in test suite (#268)
Fix UI & Service Integration Issues (ALL 14 test failures fixed - 100…
Fix unhandled promise rejections in test suite (#268)
Fix UI & Service Integration Issues (ALL 14 test failures fixed - 100…
Fix unhandled promise rejections in test suite (#268)