From 9eacf6bc38b67f503927f467f65367ba878337cd Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Thu, 4 Apr 2019 14:18:54 +0300 Subject: [PATCH] Reduce simulation time to 1 second in AnimationRemainingEnergyTestCase Otherwise remaining energy goes below zero. --- src/netanim/test/netanim-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netanim/test/netanim-test.cc b/src/netanim/test/netanim-test.cc index d296a34d9..b51828bb6 100644 --- a/src/netanim/test/netanim-test.cc +++ b/src/netanim/test/netanim-test.cc @@ -238,7 +238,7 @@ AnimationRemainingEnergyTestCase::PrepareNetwork (void) // aggregate energy source to node m_nodes.Get (0)->AggregateObject (m_energySource); // once node's energy will be depleted according to the model - Simulator::Stop (Seconds (2)); + Simulator::Stop (Seconds (1)); } void