Skip to content

Commit a544c60

Browse files
committed
change typeWithWildcardTest to indexWithWildcardTest
1 parent 48db9ff commit a544c60

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

src/test/java/org/nlpcn/es4sql/MainTestSuite.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public static void setUp() throws Exception {
5050
deleteQuery(TEST_INDEX);
5151
loadBulk("src/test/resources/accounts.json");
5252
loadBulk("src/test/resources/phrases.json");
53-
loadBulk("src/test/resources/phrases_2.json");
5453
loadBulk("src/test/resources/online.json");
5554

5655

src/test/java/org/nlpcn/es4sql/QueryTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public void multipleFromTest() throws IOException, SqlParseException, SQLFeature
3636
}
3737

3838
@Test
39-
public void typeWithWildcardTest() throws IOException, SqlParseException, SQLFeatureNotSupportedException{
40-
SearchHits response = query(String.format("SELECT * FROM %s/phrase* LIMIT 1000", TEST_INDEX));
41-
Assert.assertEquals(8, response.getTotalHits());
39+
public void indexWithWildcardTest() throws IOException, SqlParseException, SQLFeatureNotSupportedException{
40+
SearchHits response = query("SELECT * FROM elasticsearch-* LIMIT 1000");
41+
assertThat(response.getTotalHits(), greaterThan(0L));
4242
}
4343

4444

src/test/resources/phrases_2.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)