Another try at possible fix for flaky C4EndToEndTest
did not seem to have fixed the issue. Trying again...
@@ -82,6 +82,8 @@ public abstract class EndToEndTest extends LuceneTestCase {
@Override
@Before
public void setUp() throws Exception {
+ Locale.setDefault(Locale.US);
+
// We're going to build an index for every test.
super.setUp();
indexPath = "test-index" + RANDOM.nextInt(100000);
@@ -188,8 +190,6 @@ public abstract class EndToEndTest extends LuceneTestCase {
@Test
public void checkIndex() throws IOException {
- Locale.setDefault(Locale.US);
-
// Subclasses will override this method and provide the ground truth.
setCheckIndexGroundTruth();
@@ -281,8 +281,6 @@ public abstract class EndToEndTest extends LuceneTestCase {
@Test
public void testSearching() {
- Locale.setDefault(Locale.US);
-
// Subclasses will override this method and provide the ground truth.
setSearchGroundTruth();
