Skip to content

Commit 1e88bc2

Browse files
committed
add ndx to url prefix
1 parent 0303af0 commit 1e88bc2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Framework/DataHandling/src/ISISJournal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ using Poco::XML::NodeFilter;
3030
using Poco::XML::TreeWalker;
3131

3232
namespace {
33-
static constexpr const char *URL_PREFIX = "http://journals.isis.cclrc.ac.uk/jv/";
33+
static constexpr const char *URL_PREFIX = "http://journals.isis.cclrc.ac.uk/jv/ndx";
3434
static constexpr const char *INDEX_FILE_NAME = "main";
3535
static constexpr const char *JOURNAL_PREFIX = "/journal_";
3636
static constexpr const char *JOURNAL_EXT = ".xml";

Framework/DataHandling/test/ISISJournalTest.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ using testing::NiceMock;
2222
using testing::Return;
2323

2424
namespace {
25-
const std::string URL_PREFIX = "http://journals.isis.cclrc.ac.uk/jv";
25+
const std::string URL_PREFIX = "http://journals.isis.cclrc.ac.uk/jv/ndx";
2626

2727
static constexpr const char *emptyFile = "";
2828

@@ -95,14 +95,14 @@ class ISISJournalTest : public CxxTest::TestSuite {
9595

9696
void test_getRuns_requests_correct_url() {
9797
auto journal = makeJournal();
98-
auto url = URL_PREFIX + "/ndxinter/journal_19_4.xml";
98+
auto url = URL_PREFIX + "inter/journal_19_4.xml";
9999
EXPECT_CALL(*m_internetHelper, sendRequestProxy(url, _)).Times(1);
100100
journal.getRuns();
101101
}
102102

103103
void test_getCycleNames_requests_correct_url() {
104104
auto journal = makeJournal(indexFile);
105-
auto url = URL_PREFIX + "/ndxinter/journal_main.xml";
105+
auto url = URL_PREFIX + "inter/journal_main.xml";
106106
EXPECT_CALL(*m_internetHelper, sendRequestProxy(url, _)).Times(1);
107107
journal.getCycleNames();
108108
}

0 commit comments

Comments
 (0)