Skip to content

Commit 3b71547

Browse files
committed
Test fix
Test was failing intermittently because it would only get 2 rows initially, so modified it to fail on one of the first 2 rows.
1 parent 031727e commit 3b71547

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

marklogic-client-api/src/test/java/com/marklogic/client/test/rows/RowManagerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ public void testSQLNoResults() {
525525
@ExtendWith(RequiresML11.class)
526526
public void testErrorWhileStreamingRows() {
527527
final String validQueryThatEventuallyThrowsAnError = "select case " +
528-
"when lastName = 'Davis' then fn_error(fn_qname('', 'SQL-TABLENOTFOUND'), 'Internal Server Error') end, " +
528+
"when lastName = 'Byron' then fn_error(fn_qname('', 'SQL-TABLENOTFOUND'), 'Internal Server Error') end, " +
529529
"opticUnitTest.musician.* from (select * from opticUnitTest.musician order by lastName)";
530530

531531
RowManager rowManager = Common.client.newRowManager();
@@ -534,7 +534,7 @@ public void testErrorWhileStreamingRows() {
534534
FailedRequestException ex = assertThrows(FailedRequestException.class, () -> rowManager.resultRows(plan),
535535
"The SQL query is designed to not immediately fail - it will immediately return a 200 status code to the " +
536536
"Java Client because the query itself can be executed - but will fail later as it streams rows; " +
537-
"specifically, it will fail on the fourth row, which is the 'Davis' row. " +
537+
"specifically, it will fail on the second row, which is the 'Byron' row. " +
538538
"If chunking is configured correctly for the /v1/rows requests - i.e. if the " +
539539
"'TE' header is present - then ML should return trailers in the HTTP response named 'ml-error-code' and " +
540540
"'ml-error-message'. Those are intended to indicate that while a 200 was returned, an error occurred later " +

0 commit comments

Comments
 (0)