Commit b823a2d
authored
Fix flakiness of test-type-description-service.js (#1367)
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: #13661 parent 6d2582f commit b823a2d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
0 commit comments