From 2cce4ea3f138ec97932f64611432494174bdd1c0 Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Tue, 18 Dec 2012 12:25:32 +0100 Subject: [PATCH] increased expected RRC connection establisment duration in lte-x2-handover test --- src/lte/test/test-lte-x2-handover.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lte/test/test-lte-x2-handover.cc b/src/lte/test/test-lte-x2-handover.cc index b4fa3cd81..46b835ae6 100644 --- a/src/lte/test/test-lte-x2-handover.cc +++ b/src/lte/test/test-lte-x2-handover.cc @@ -373,7 +373,7 @@ LteX2HandoverTestCase::DoRun () m_lteHelper->AddX2Interface (enbNodes); // check initial RRC connection - const Time maxRrcConnectionEstablishmentDuration = Seconds (0.060); + const Time maxRrcConnectionEstablishmentDuration = Seconds (0.080); for (NetDeviceContainer::Iterator it = ueDevices.Begin (); it != ueDevices.End (); ++it) { Simulator::Schedule (maxRrcConnectionEstablishmentDuration, @@ -444,7 +444,9 @@ LteX2HandoverTestCase::CheckConnected (Ptr ueDevice, Ptr e Ptr ueManager = enbRrc->GetUeManager (rnti); NS_TEST_ASSERT_MSG_NE (ueManager, 0, "RNTI " << rnti << " not found in eNB"); - NS_TEST_ASSERT_MSG_EQ (ueManager->GetState (), UeManager::CONNECTED_NORMALLY, "Wrong UeManager state!"); + UeManager::State ueManagerState = ueManager->GetState (); + NS_TEST_ASSERT_MSG_EQ (ueManagerState, UeManager::CONNECTED_NORMALLY, "Wrong UeManager state!"); + NS_ASSERT_MSG (ueManagerState == UeManager::CONNECTED_NORMALLY, "Wrong UeManager state!"); uint16_t ueCellId = ueRrc->GetCellId (); uint16_t enbCellId = enbLteDevice->GetCellId ();