Skip to content

Commit 4f66b0a

Browse files
committed
Parse boolean correctly
1 parent a4400f7 commit 4f66b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public static void initializeProjectIds() {
370370
activeProject = "active00" + randomAlphaOfLength(8).toLowerCase(Locale.ROOT);
371371
extraProjects = randomSet(1, 3, () -> randomAlphaOfLength(12).toLowerCase(Locale.ROOT));
372372
// TODO do this in a different way
373-
multiProjectEnabled = Objects.equals(System.getProperty("test.multi_project.enabled"), "true");
373+
multiProjectEnabled = Boolean.parseBoolean(System.getProperty("test.multi_project.enabled"));
374374
}
375375

376376
@Before

0 commit comments

Comments
 (0)