Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 99168fe6b132b2a8ad59b6078316efb8a686ffb1 1 parent fd9d442
authored dklayer committed

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. 9  src/test/IndexManagementTests.java
9  src/test/IndexManagementTests.java
@@ -20,20 +20,21 @@
20 20
     @Test
21 21
     @Category(TestSuites.Prepush.class)
22 22
     public void manageIndices_rfe9930() throws Exception {
  23
+	int indexCount = 7;
23 24
 		List<String> indices = conn.listValidIndices();
24 25
 		Assert.assertTrue("expected more valid indices", indices.size() >= 24);
25 26
 		indices = conn.listIndices();
26  
-		Assert.assertEquals("unexpected number of indices initially", 6, indices.size());
  27
+		Assert.assertEquals("unexpected number of indices initially", indexCount, indices.size());
27 28
 		conn.dropIndex("gospi");
28 29
 		conn.dropIndex("spogi");
29 30
 		indices = conn.listIndices();
30  
-		Assert.assertEquals("unexpected number of indices after drop", 4, indices.size());
  31
+		Assert.assertEquals("unexpected number of indices after drop", (indexCount-2), indices.size());
31 32
 		conn.addIndex("gospi");
32 33
 		indices = conn.listIndices();
33  
-		Assert.assertEquals("unexpected number of indices after add", 5, indices.size());
  34
+		Assert.assertEquals("unexpected number of indices after add", (indexCount-1), indices.size());
34 35
 		conn.addIndex("gospi");
35 36
 		indices = conn.listIndices();
36  
-		Assert.assertEquals("unexpected number of indices after redundant add", 5, indices.size());
  37
+		Assert.assertEquals("unexpected number of indices after redundant add", (indexCount-1), indices.size());
37 38
     }
38 39
 
39 40
 }

0 notes on commit 99168fe

Please sign in to comment.
Something went wrong with that request. Please try again.