Permalink
Browse files

bug19684 - tweak test to match new behavior

This must be pulled in at the same time the corresponding agraph change is.

tests added    : no
tests run      : java-prepush
performance    : no chagne
release-note   : none, internal change (though see the matching agraph commit)

Change-Id: Ia200c303e5f4e035b1d5de4a6727722bec4e106e
Reviewed-on: https://gerrit.franz.com:9080/765
Reviewed-by: John O'Rourke <john.orourke@franz.com>
Reviewed-by: Ahmon Dancy <dancy@franz.com>
Reviewed-by: Kevin Layer <layer@franz.com>
Tested-by: Kevin Layer <layer@franz.com>
  • Loading branch information...
1 parent fd9d442 commit 99168fe6b132b2a8ad59b6078316efb8a686ffb1 Gary King committed with dklayer Sep 23, 2010
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/test/IndexManagementTests.java
View
9 src/test/IndexManagementTests.java
@@ -20,20 +20,21 @@
@Test
@Category(TestSuites.Prepush.class)
public void manageIndices_rfe9930() throws Exception {
+ int indexCount = 7;
List<String> indices = conn.listValidIndices();
Assert.assertTrue("expected more valid indices", indices.size() >= 24);
indices = conn.listIndices();
- Assert.assertEquals("unexpected number of indices initially", 6, indices.size());
+ Assert.assertEquals("unexpected number of indices initially", indexCount, indices.size());
conn.dropIndex("gospi");
conn.dropIndex("spogi");
indices = conn.listIndices();
- Assert.assertEquals("unexpected number of indices after drop", 4, indices.size());
+ Assert.assertEquals("unexpected number of indices after drop", (indexCount-2), indices.size());
conn.addIndex("gospi");
indices = conn.listIndices();
- Assert.assertEquals("unexpected number of indices after add", 5, indices.size());
+ Assert.assertEquals("unexpected number of indices after add", (indexCount-1), indices.size());
conn.addIndex("gospi");
indices = conn.listIndices();
- Assert.assertEquals("unexpected number of indices after redundant add", 5, indices.size());
+ Assert.assertEquals("unexpected number of indices after redundant add", (indexCount-1), indices.size());
}
}

0 comments on commit 99168fe

Please sign in to comment.