Skip to content

Conversation

@anu3990
Copy link
Contributor

@anu3990 anu3990 commented Jul 18, 2025

No description provided.

Copilot AI review requested due to automatic review settings July 18, 2025 18:37
Copy link

Copilot AI left a comment

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 test failures by updating error handling patterns and adding missing dependencies. The changes primarily focus on improving async error handling in test cases and ensuring proper test assertions.

  • Updated error handling from synchronous try-catch to asynchronous catch blocks
  • Added missing assert module import for test assertions
  • Modified error message validation to match updated API error responses

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test-complete/nodejs-optic-nodes.js Updated error handling from callback-only to promise-based with catch block
test-basic/fromDocDescriptors-test.js Added assert import and restructured error handling test with updated error message validation
Comments suppressed due to low confidence (1)

test-basic/fromDocDescriptors-test.js:138

  • The variable name 'error' shadows the outer scope 'error' parameter. Consider renaming the inner catch variable to 'assertError' or 'err' for clarity.
                    } catch(error){

}
db.rows.query(op.fromDocDescriptors('asd'))
.catch(error => {
try{
Copy link

Copilot AI Jul 18, 2025

Choose a reason for hiding this comment

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

[nitpick] Missing space before opening brace. Should be 'try {' to maintain consistent code formatting.

Suggested change
try{
try {

Copilot uses AI. Check for mistakes.
rjrudin
rjrudin previously approved these changes Jul 18, 2025
@anu3990 anu3990 changed the title Fix for test failures. Fix for Jenkins test failures. Jul 18, 2025
@anu3990 anu3990 changed the title Fix for Jenkins test failures. MLE-23011 : Jenkins test failures Jul 21, 2025
@anu3990 anu3990 merged commit bf70da5 into marklogic:develop Jul 21, 2025
1 of 3 checks passed
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.

2 participants