From e31c9deb9fe4c65bc9d200037bbca8fcd28e10e1 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Mon, 30 Jun 2008 17:29:05 +0000 Subject: [PATCH] fix DirectUpdateHandlerOptimizeTest to pass on windows git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@672829 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/solr/update/DirectUpdateHandlerOptimizeTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/org/apache/solr/update/DirectUpdateHandlerOptimizeTest.java b/src/test/org/apache/solr/update/DirectUpdateHandlerOptimizeTest.java index aba696edc2d..c69b8ab03b6 100644 --- a/src/test/org/apache/solr/update/DirectUpdateHandlerOptimizeTest.java +++ b/src/test/org/apache/solr/update/DirectUpdateHandlerOptimizeTest.java @@ -60,6 +60,7 @@ public class DirectUpdateHandlerOptimizeTest extends AbstractSolrTestCase { CommitUpdateCommand cmtCmd = new CommitUpdateCommand(false); updater.commit(cmtCmd); + updater.commit(cmtCmd); // commit twice to give systems such as windows a chance to delete the old files String indexDir = core.getIndexDir(); assertNumSegments(indexDir, 500); @@ -68,6 +69,7 @@ public class DirectUpdateHandlerOptimizeTest extends AbstractSolrTestCase { cmtCmd = new CommitUpdateCommand(true); cmtCmd.maxOptimizeSegments = 250; updater.commit(cmtCmd); + updater.commit(cmtCmd); assertNumSegments(indexDir, 250); cmtCmd.maxOptimizeSegments = -1; @@ -78,6 +80,7 @@ public class DirectUpdateHandlerOptimizeTest extends AbstractSolrTestCase { } cmtCmd.maxOptimizeSegments = 1; updater.commit(cmtCmd); + updater.commit(cmtCmd); assertNumSegments(indexDir, 1); }