Skip to content

Commit f3ec87b

Browse files
committed
Update wrong checks in tests
1 parent fd7f26b commit f3ec87b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

jdbc/src/test/java/tech/ydb/jdbc/impl/YdbPreparedStatementImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ public void executeScanQueryAsUpdate() throws SQLException {
427427
statement.setInt("key", 1);
428428
statement.setString("c_Text", "value-1");
429429

430-
ExceptionAssert.ydbConditionallyRetryable("Scan query should have a single result set",
430+
ExceptionAssert.ydbNonRetryable("Scan query should have a single result set",
431431
statement::executeScanQuery);
432432
}
433433
}

jdbc/src/test/java/tech/ydb/jdbc/impl/YdbPreparedStatementWithDataQueryImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public void executeScanQueryAsUpdate() throws SQLException {
290290
statement.setInt("key", 1);
291291
statement.setString("c_Text", "value-1");
292292

293-
ExceptionAssert.ydbConditionallyRetryable("Scan query should have a single result set", statement::execute);
293+
ExceptionAssert.ydbNonRetryable("Scan query should have a single result set", statement::execute);
294294
}
295295
}
296296
}

jdbc/src/test/java/tech/ydb/jdbc/impl/YdbStatementImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,15 +312,15 @@ public void executeScanQueryOnSystemTable() throws SQLException {
312312

313313
@Test
314314
public void executeScanQueryMultiResult() {
315-
ExceptionAssert.ydbConditionallyRetryable("Scan query should have a single result set",
315+
ExceptionAssert.ydbNonRetryable("Scan query should have a single result set",
316316
() -> statement.executeUpdate("scan select 2 + 2;scan select 2 + 3")
317317
);
318318
}
319319

320320
@Test
321321
public void executeScanQueryAsUpdate() {
322322
// Looks weird
323-
ExceptionAssert.ydbConditionallyRetryable("Scan query should have a single result set",
323+
ExceptionAssert.ydbNonRetryable("Scan query should have a single result set",
324324
() -> statement.executeUpdate("SCAN\n" + TEST_UPSERT1_SQL)
325325
);
326326
}

0 commit comments

Comments
 (0)