wifi: Remove Simulator::Run () calls in the PARF unit tests

The problem that may arise is that the unit test performs a number of
operations on Wifi objects before Simulator::Run() is entered.  There
are no events generated by these tests, so Simulator::Run () will not do
anything for the test.  What it may do, however, is call some
Object::DoInitialize() code that may assert if it finds the Wifi object
in an unexpected state.
This commit is contained in:
Tom Henderson
2016-09-20 13:41:07 -07:00
parent 7bb5492e44
commit f23f57c3df

View File

@@ -330,11 +330,6 @@ PowerRateAdaptationTest::TestParf ()
NS_TEST_ASSERT_MSG_EQ (mode.GetDataRate (txVector.GetChannelWidth (), txVector.IsShortGuardInterval (), 1), 54000000, "PARF: Incorrect vale of data rate");
NS_TEST_ASSERT_MSG_EQ (power, 17, "PARF: Incorrect value of power level");
Simulator::Stop (Seconds (10.0));
Simulator::Run ();
Simulator::Destroy ();
}
void
@@ -570,11 +565,6 @@ PowerRateAdaptationTest::TestAparf ()
NS_TEST_ASSERT_MSG_EQ (mode.GetDataRate (txVector.GetChannelWidth (), txVector.IsShortGuardInterval (), 1), 54000000, "APARF: Incorrect vale of data rate");
NS_TEST_ASSERT_MSG_EQ (power, 17, "APARF: Incorrect value of power level");
Simulator::Stop (Seconds (10.0));
Simulator::Run ();
Simulator::Destroy ();
}
void