increase test time in lte-link-adaptation test
authorNicola Baldo <nbaldo@cttc.es>
Tue, 18 Dec 2012 17:26:59 +0100
changeset 9582 7951c152af07
parent 9581 d1ad2deb4a04
child 9583 2ffd086b410c
child 9588 5e080e30fbe2
increase test time in lte-link-adaptation test
src/lte/test/lte-test-link-adaptation.cc
--- a/src/lte/test/lte-test-link-adaptation.cc	Tue Dec 18 17:16:48 2012 +0100
+++ b/src/lte/test/lte-test-link-adaptation.cc	Tue Dec 18 17:26:59 2012 +0100
@@ -155,9 +155,11 @@
 void
 LteLinkAdaptationTestCase::DoRun (void)
 {
-  
+  Config::Reset ();
   Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010));
   Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (0.00005));
+  Config::SetDefault ("ns3::LteEnbRrc::SrsPeriodicity", UintegerValue (2));
+
   /**
     * Simulation Topology
     */
@@ -206,7 +208,7 @@
   Config::Connect ("/NodeList/0/DeviceList/0/LteEnbMac/DlScheduling",
                    MakeBoundCallback (&LteTestDlSchedulingCallback, this));
 
-  Simulator::Stop (Seconds (0.026));
+  Simulator::Stop (Seconds (0.040));
   Simulator::Run ();
 
   double calculatedSinrDb = 10.0 * log10 (testSinr->GetSinr ()->operator[] (0));
@@ -233,7 +235,7 @@
    * RRC connection has been completed and
    * CQI feedback is available at the eNB.
    */
-  if (Simulator::Now ().GetSeconds () > 0.024)
+  if (Simulator::Now ().GetSeconds () > 0.030)
     {
       NS_LOG_INFO (m_snrDb << "\t" << m_mcsIndex << "\t" << (uint16_t)mcsTb1);