Skip to content

Commit 6b825ff

Browse files
authored
Fixed default namespaces test
1 parent 6d528bd commit 6b825ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

driver/src/test/java/oracle/nosql/driver/OnPremiseTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,12 @@ public void testDefaultNamespaces()
576576
/* test ListTables with no namespace: should return all */
577577
listTables = new ListTablesRequest();
578578
lres = handle.listTables(listTables);
579-
assertTrue(lres.getTables().length > 2);
579+
/* 23.3.19 upwards should return just the tables in the def namespace */
580+
if (checkKVVersion(23, 3, 18)) {
581+
assertTrue(lres.getTables().length == 2);
582+
} else {
583+
assertTrue(lres.getTables().length > 2);
584+
}
580585

581586
/* test ListTables with explicit namespace */
582587
listTables = new ListTablesRequest().setNamespace("mydns");

0 commit comments

Comments
 (0)