maven: fix index context duplication, do not force to download the index for remote...
[idea/community.git] / plugins / maven / src / test / java / org / jetbrains / idea / maven / indices / MavenIndicesManagerTest.java
index 68f6be2f3fbf89e93cfd4ec0622c1dcdec633b25..250c5ad18eccfd4810f67931d1ea07f704a09884 100644 (file)
@@ -74,8 +74,8 @@ public class MavenIndicesManagerTest extends MavenIndicesTestCase {
     assertEquals(2, myIndicesFixture.getIndicesManager().ensureIndicesExist(myProject, local, Collections.singleton(remote1)).size());
     assertEquals(2, myIndicesFixture.getIndicesManager().ensureIndicesExist(myProject, local, asList(remote1, remote2)).size());
     assertEquals(3, myIndicesFixture.getIndicesManager().ensureIndicesExist(myProject, local, asList(remote1, remote2, remote3)).size());
-    assertEquals(4, myIndicesFixture.getIndicesManager().ensureIndicesExist(myProject, local, asList(remote1, remote2, remote3, remote4)).size());
-    assertEquals(5, myIndicesFixture.getIndicesManager().ensureIndicesExist(myProject, local, asList(remote1, remote2, remote3, remote4, remote5)).size());
+    assertEquals(3, myIndicesFixture.getIndicesManager().ensureIndicesExist(myProject, local, asList(remote1, remote2, remote3, remote4)).size());
+    assertEquals(4, myIndicesFixture.getIndicesManager().ensureIndicesExist(myProject, local, asList(remote1, remote2, remote3, remote4, remote5)).size());
   }
 
   public void testDefaultArchetypes() throws Exception {