From 58eb8840c8609deeed4c6e4c0f8f85c646356a99 Mon Sep 17 00:00:00 2001 From: Eric Cano <Eric.Cano@cern.ch> Date: Mon, 2 Jul 2018 21:11:14 +0200 Subject: [PATCH] Adapted unit tests to previous commit. Fixed expected number of retries. --- scheduler/SchedulerTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scheduler/SchedulerTest.cpp b/scheduler/SchedulerTest.cpp index b3b1feff30..001449294d 100644 --- a/scheduler/SchedulerTest.cpp +++ b/scheduler/SchedulerTest.cpp @@ -623,8 +623,8 @@ TEST_P(SchedulerTest, retry_archive_until_max_reached) { std::unique_ptr<cta::ArchiveMount> archiveMount; archiveMount.reset(dynamic_cast<cta::ArchiveMount*>(mount.release())); ASSERT_NE((cta::ArchiveMount*)NULL, archiveMount.get()); - // The file should be retried 10 times - for (int i=0; i<=5; i++) { + // The file should be retried twice + for (int i=0; i<=1; i++) { std::list<std::unique_ptr<cta::ArchiveJob>> archiveJobList = archiveMount->getNextJobBatch(1,1,lc); if (!archiveJobList.front().get()) { int __attribute__((__unused__)) debugI=i; -- GitLab