Skip to content

Commit

Permalink
Scalingtest now always asserts on 10 documents instead of an estimate…
Browse files Browse the repository at this point in the history
…d value
  • Loading branch information
frankscholten committed Feb 11, 2016
1 parent 50cfefb commit 2ac7610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ public void shouldNotLoseDataWhenScalingDown() throws UnirestException {
return false;
}
});
Integer newNumberOfDocuments = Unirest.get("http://" + newAddress.get(0) + "/_count").asJson().getBody().getArray().getJSONObject(0).getInt("count");
int newNumberOfDocuments = Unirest.get("http://" + newAddress.get(0) + "/_count").asJson().getBody().getArray().getJSONObject(0).getInt("count");

// Check that the data is still correct
LOGGER.debug("New number of documents: " + newNumberOfDocuments);
assertEquals(correctNumberOfDocuments, newNumberOfDocuments);
assertEquals(DataPusherContainer.CORRECT_NUM_DOCS, newNumberOfDocuments);
}

public void scaleNumNodesTo(String ipAddress, Integer newNumNodes) throws UnirestException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Data Pusher container implementation
*/
public class DataPusherContainer extends AbstractContainer {
public static final Integer CORRECT_NUM_DOCS = 10;
public static final int CORRECT_NUM_DOCS = 10;

public String pusherImageName = "alexglv/es-pusher";

Expand Down

0 comments on commit 2ac7610

Please sign in to comment.