Reduce simulation time to 1 second in AnimationRemainingEnergyTestCase

Otherwise remaining energy goes below zero.
This commit is contained in:
Alexander Krotov
2019-04-04 14:18:54 +03:00
parent 1f1f10e13a
commit 9eacf6bc38

View File

@@ -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