From f4233bc5584ae2251595245a0f1b8143ebd11daf Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Tue, 21 Jul 2020 18:02:25 +0200 Subject: [PATCH] Add missing stop event. I am quite mad about this. Cost me about 10 h of my life to find this. --- model/mock-net-device.cc | 7 +++---- test/leo-test-suite.cc | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/model/mock-net-device.cc b/model/mock-net-device.cc index ca1ea9a..7d8f517 100644 --- a/model/mock-net-device.cc +++ b/model/mock-net-device.cc @@ -556,10 +556,9 @@ MockNetDevice::IsBridge (void) const } bool -MockNetDevice::Send ( - Ptr packet, - const Address &dest, - uint16_t protocolNumber) +MockNetDevice::Send (Ptr packet, + const Address &dest, + uint16_t protocolNumber) { NS_LOG_FUNCTION (this << packet << dest << protocolNumber); NS_LOG_LOGIC ("p=" << packet << ", dest=" << &dest); diff --git a/test/leo-test-suite.cc b/test/leo-test-suite.cc index 8d98320..cb53d91 100644 --- a/test/leo-test-suite.cc +++ b/test/leo-test-suite.cc @@ -127,6 +127,7 @@ LeoTestCase1::DoRun (void) clientApps.Stop (Seconds (9.0)); serverApps.Stop (Seconds (10)); + Simulator::Stop (Seconds (12)); Simulator::Run (); Simulator::Destroy (); }