Skip to content

Commit 7546bec

Browse files
committed
fix(test): skip old synonym tests on v30 and above
1 parent d46c832 commit 7546bec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/java/org/typesense/api/SynonymsTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ class SynonymsTest {
1414
void setUp() throws Exception {
1515
helper = new Helper();
1616
client = helper.getClient();
17+
18+
if (Helper.isV30OrAbove(client)) {
19+
org.junit.jupiter.api.Assumptions.assumeTrue(false, "Skipping test - requires Typesense v30 or above");
20+
}
21+
1722
helper.teardown();
1823
helper.createTestCollection();
1924
helper.createTestSynonym();
@@ -49,4 +54,4 @@ void testRetrieveAll() throws Exception {
4954
void testDelete() throws Exception {
5055
System.out.println(this.client.collections("books").synonyms("coat-synonyms").delete());
5156
}
52-
}
57+
}

0 commit comments

Comments
 (0)