Skip to content

Fix flakiness of test-type-description-service.js#1367

Merged
minggangw merged 1 commit into
RobotWebTools:developfrom
minggangw:fix-1366
Jan 14, 2026
Merged

Fix flakiness of test-type-description-service.js#1367
minggangw merged 1 commit into
RobotWebTools:developfrom
minggangw:fix-1366

Conversation

@minggangw

@minggangw minggangw commented Jan 14, 2026

Copy link
Copy Markdown
Member

This PR fixes flakiness in the test-type-description-service.js test file by preventing multiple calls to the done() callback in asynchronous tests. The root cause was that after calling done() with an error, the callback would continue executing and potentially call done() again, causing test failures.

Changes:

  • Added return statements after done() calls in error handling blocks to prevent continued execution
  • Enhanced error messages to include actual error and stderr details for better debugging

Fix: #1366

Copilot AI review requested due to automatic review settings January 14, 2026 05:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes flakiness in the test-type-description-service.js test file by preventing multiple calls to the done() callback in asynchronous tests. The root cause was that after calling done() with an error, the callback would continue executing and potentially call done() again, causing test failures.

Changes:

  • Added return statements after done() calls in error handling blocks to prevent continued execution
  • Enhanced error messages to include actual error and stderr details for better debugging

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 80.646% (+0.02%) from 80.626%
when pulling c5cff91 on minggangw:fix-1366
into b7627b7 on RobotWebTools:develop.

@minggangw minggangw merged commit b823a2d into RobotWebTools:develop Jan 14, 2026
25 of 26 checks passed
minggangw added a commit that referenced this pull request Jan 22, 2026
This PR fixes flakiness in the test-type-description-service.js test file by preventing multiple calls to the `done()` callback in asynchronous tests. The root cause was that after calling `done()` with an error, the callback would continue executing and potentially call `done()` again, causing test failures.

**Changes:**
- Added `return` statements after `done()` calls in error handling blocks to prevent continued execution
- Enhanced error messages to include actual error and stderr details for better debugging

Fix: #1366
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.

Fix test-type-description-service.js flakiness

3 participants