Skip to content

Commit ff401bf

Browse files
Aleksandr Iuskasovnickkkccc
authored andcommitted
test(client): accept checks error message without function name
checks 287c88e ("exclude nil function name from error messages", 2026-10-28) drops the " to nil" suffix from "unexpected argument" errors. crud 1.5.0 depends on `checks >= 3.1.0-1`, so the test cluster picks it up on every fresh build, and testSelectWrongParameters fails on master with "... select.lua:320: unexpected argument opts.coolOption". Accept the message with and without the suffix.
1 parent 908ffe4 commit ff401bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tarantool-client/src/test/java/io/tarantool/client/integration/TarantoolCrudClientTest.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2538,10 +2538,11 @@ public void testSelectWrongParameters() {
25382538
CrudException cause = (CrudException) ex.getCause();
25392539
assertEquals(CompletionException.class, ex.getClass());
25402540
assertEquals(CrudException.class, cause.getClass());
2541+
// checks >= 287c88e omits the " to nil" suffix when the function name is unknown.
25412542
assertTrue(
25422543
cause
25432544
.getMessage()
2544-
.matches("SelectError:.*" + "unexpected argument opts.coolOption to nil"));
2545+
.matches("SelectError:.*unexpected argument opts\\.coolOption( to nil)?"));
25452546
}
25462547

25472548
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)