EQL: fix QueryFolderOkTests (#56714) (#56728)

(cherry picked from commit 8b21ccd0eac3b3d0fbd090152b3dff6ae5217b52)
This commit is contained in:
Andrei Stefan 2020-05-14 10:58:25 +03:00 committed by GitHub
parent 3051c37f92
commit ddf4e47e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -110,9 +110,11 @@ public class QueryFolderOkTests extends AbstractQueryFolderTestCase {
}
public void test() {
String testName = name.toLowerCase(Locale.ROOT);
// skip tests that do not make sense from case sensitivity point of view
boolean isCaseSensitiveValidTest = name.toLowerCase(Locale.ROOT).endsWith("-casesensitive") && configuration.isCaseSensitive()
|| name.toLowerCase(Locale.ROOT).endsWith("-caseinsensitive") && configuration.isCaseSensitive() == false;
boolean isCaseSensitiveValidTest = testName.endsWith("sensitive") == false
|| testName.endsWith("-casesensitive") && configuration.isCaseSensitive()
|| testName.endsWith("-caseinsensitive") && configuration.isCaseSensitive() == false;
Assume.assumeTrue(isCaseSensitiveValidTest);
PhysicalPlan p = plan(query);