Skip to content

Commit

Permalink
bug19684 - tweak test to match new behavior
Browse files Browse the repository at this point in the history
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
Gary King authored and dklayer committed Sep 30, 2010
1 parent fd9d442 commit 99168fe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/IndexManagementTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@ public class IndexManagementTests extends AGAbstractTest {
@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.