Skip to content
Snippets Groups Projects
Commit a83c05ef authored by Steven Murray's avatar Steven Murray
Browse files

Removed the RecallReportPackerFaillure test because it is redundant in the CTA project

parent 46e78c0e
No related branches found
No related tags found
No related merge requests found
......@@ -172,34 +172,4 @@ TEST_F(castor_tape_tapeserver_daemonTest, RecallReportPackerBadBadEnd) {
ASSERT_NE(std::string::npos, temp.find(error_msg));
}
/*
TEST_F(castor_tape_tapeserver_daemonTest, RecallReportPackerFaillure) {
std::string error_msg="ERROR_TEST_MSG";
int error_code=std::numeric_limits<int>::max();
using namespace ::testing;
MockClient client;
::testing::InSequence dummy;
EXPECT_CALL(client, reportRecallResults(_,_)).WillRepeatedly(Throw(castor::exception::Exception("")));
EXPECT_CALL(client, reportEndOfSessionWithError(_,SEINTERNAL,_)).Times(1);
castor::log::StringLogger log("castor_tape_tapeserver_RecallReportPackerBadBadEnd");
castor::log::LogContext lc(log);
std::unique_ptr<cta::MockSchedulerDatabase> mdb(new cta::MockSchedulerDatabase);
tapeserver::daemon::RecallReportPacker rrp(dynamic_cast<cta::RetrieveMount *>((mdb->getNextMount("ll","drive")).get()),lc);
rrp.startThreads();
tapegateway::FileToRecallStruct recalledFiled;
rrp.reportCompletedJob(recalledFiled,0,0);
rrp.reportCompletedJob(recalledFiled,0,0);
rrp.reportEndOfSessionWithErrors(error_msg,error_code);
rrp.waitThread();
std::string temp = log.getLog();
ASSERT_NE(std::string::npos, temp.find("Successfully closed client's session after the failed report RecallResult"));
}
*/
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment