From 36c1a07b467ca87b933f2b3a3ae6cf9701f49701 Mon Sep 17 00:00:00 2001 From: ZiluTian Date: Thu, 4 Apr 2024 10:34:46 +0200 Subject: [PATCH] Bug fix (change to the updated graph API) --- Akka/src/test/scala/simulateUntilTest.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Akka/src/test/scala/simulateUntilTest.scala b/Akka/src/test/scala/simulateUntilTest.scala index a6e7164a..f5592d51 100644 --- a/Akka/src/test/scala/simulateUntilTest.scala +++ b/Akka/src/test/scala/simulateUntilTest.scala @@ -11,7 +11,8 @@ class simulateUntilTest extends FlatSpec { f"The epidemics example" should "stop as soon as the termination condition is met" in { val population = 10000 - val agents = generated.example.epidemic.InitData(population, 0.01) + val graph = cloudcity.lib.Graph.ErdosRenyiGraph(population, 0.01) + val agents = generated.example.epidemic.InitData(graph) (new API.SimulateUntil()).apply(agents, totalRounds, (ts: Iterable[Iterable[Serializable]]) => { val x = ts.last.filter(i => i match { case y: generated.example.epidemic.Person => y.health == 1