From b2eda5879555efb07a0b1d8461ae1dcb93f8d8c8 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Fri, 9 Oct 2015 15:20:37 +0200 Subject: [PATCH] Revert "Session-Id don't have to be mandatory to programm testcases" This reverts commit 38f67dae313f5b4b988a11804cfee52f74e16e33. --- example/diameter/launcher/testing/TestCase.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/example/diameter/launcher/testing/TestCase.cpp b/example/diameter/launcher/testing/TestCase.cpp index 0b26170..3d91f32 100644 --- a/example/diameter/launcher/testing/TestCase.cpp +++ b/example/diameter/launcher/testing/TestCase.cpp @@ -241,16 +241,8 @@ void TestCase::assertMessage(const anna::DataBlock &db, bool toEntity) throw(ann a_hopByHops[hbh] = NULL; // may be assigned to a wait condition } - if (registerSessionId) { - try { - std::string sid = anna::diameter::helpers::base::functions::getSessionId(db); - TestManager::instantiate().registerSessionId(sid, this); - } - catch (anna::RuntimeException &ex) { - //ex.trace(); - // if we don't have session-id ... don't worry - } - } + if (registerSessionId) + TestManager::instantiate().registerSessionId(anna::diameter::helpers::base::functions::getSessionId(db), this); } void TestCase::addTimeout(const anna::Millisecond &timeout) throw(anna::RuntimeException) { -- 2.20.1