Browse Source

Fix fortune test

jamming 10 years ago
parent
commit
d93d83aef5

+ 1 - 1
frameworks/Java/sabina/src/main/java/sabina/benchmark/Application.java

@@ -137,7 +137,7 @@ final class Application {
             e.printStackTrace ();
         }
 
-        fortunes.add (new Fortune (42, "Additional fortune added at request time."));
+        fortunes.add (new Fortune (0, "Additional fortune added at request time."));
         fortunes.sort ((a, b) -> a.message.compareTo (b.message));
 
         it.response.type ("text/html; charset=utf-8");

+ 1 - 1
frameworks/Java/sabina/src/test/java/sabina/benchmark/ApplicationTest.java

@@ -39,7 +39,7 @@ import org.testng.annotations.Test;
  * <p>TODO Change assert's order
  */
 public final class ApplicationTest {
-    private static final int THREADS = 32, EXECUTIONS = 64, WARM_UP = 16;
+    private static final int THREADS = 16, EXECUTIONS = 32, WARM_UP = 32;
 
     private static final String ENDPOINT = "http://localhost:5050";
     private static final Gson GSON = new Gson ();