Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Skip bwc analysis tests if using turkish or azuri locale. #8492

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -50,8 +50,11 @@ public class BasicAnalysisBackwardCompatibilityTests extends ElasticsearchBackwa
*/
@Test
public void testAnalyzerTokensAfterUpgrade() throws IOException, ExecutionException, InterruptedException {
// certain analyzers, namely PatternAnalyzer, have had issues with turkish and azuri
assumeFalse("Do not use turkish and azuri locales",
Locale.getDefault().getLanguage().equals("tr") || Locale.getDefault().getLanguage().equals("az"));

int numFields = randomIntBetween(PreBuiltAnalyzers.values().length, PreBuiltAnalyzers.values().length * 10);
StringBuilder builder = new StringBuilder();
String[] fields = new String[numFields * 2];
int fieldId = 0;
for (int i = 0; i < fields.length; i++) {
Expand Down