From 728f1aee67498d7e1c0e57bf91a3e5a53dbb2bbb Mon Sep 17 00:00:00 2001
From: Thomas Rausch <thomas@rauschig.org>
Date: Tue, 29 May 2018 16:34:06 +0200
Subject: [PATCH] Make ElasticityControllerTest more tolernat to edge cases
---
.../java/dst/ass3/elastic/ElasticityControllerTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ass3-elastic/src/test/java/dst/ass3/elastic/ElasticityControllerTest.java b/ass3-elastic/src/test/java/dst/ass3/elastic/ElasticityControllerTest.java
index d7312dc..ce0b7c7 100644
--- a/ass3-elastic/src/test/java/dst/ass3/elastic/ElasticityControllerTest.java
+++ b/ass3-elastic/src/test/java/dst/ass3/elastic/ElasticityControllerTest.java
@@ -49,21 +49,21 @@ public class ElasticityControllerTest {
workerCount.clear();
workerCount.put(RequestType.DOCUMENT, 95L);
- workerCount.put(RequestType.VIDEO, 88L);
+ workerCount.put(RequestType.VIDEO, 87L);
workerCount.put(RequestType.QUIZ, 61L);
when(workloadMonitor.getWorkerCount()).thenReturn(workerCount);
requestCount.clear();
requestCount.put(RequestType.DOCUMENT, 600L);
requestCount.put(RequestType.VIDEO, 1000L);
- requestCount.put(RequestType.QUIZ, 1000L);
+ requestCount.put(RequestType.QUIZ, 1005L);
when(workloadMonitor.getRequestCount()).thenReturn(requestCount);
containers.clear();
for (int i = 0; i < 95; i++) {
containers.add(containerInfo("documentId" + i, WORKER_IMAGE, RequestType.DOCUMENT, true));
}
- for (int i = 0; i < 88; i++) {
+ for (int i = 0; i < 87; i++) {
containers.add(containerInfo("video" + i, WORKER_IMAGE, RequestType.VIDEO, true));
}
for (int i = 0; i < 61; i++) {
--
2.47.3