Commit 026e485a authored by Srikanth Ravipati's avatar Srikanth Ravipati Committed by Peterson, Peter
Browse files

Set and unset ISIS facility

parent a1343cf1
......@@ -25,7 +25,17 @@ public:
static LoadILLTest *createSuite() { return new LoadILLTest(); }
static void destroySuite(LoadILLTest *suite) { delete suite; }
void tearDown() override { AnalysisDataService::Instance().clear(); }
void setUp() override {
ConfigService::Instance().setString("default.facility", "ISIS");
}
void tearDown() override {
ConfigService::Instance().setString("default.facility", "NONE");
AnalysisDataService::Instance().clear();
}
void checkLoader(const std::string &filename, std::string resultLoader) {
Load alg;
......
......@@ -34,12 +34,16 @@ public:
m_dataSearchDirs = ConfigService::Instance().getDataSearchDirs();
m_instName = ConfigService::Instance().getString("default.instrument");
ConfigService::Instance().setString("default.facility", "ISIS");
}
void tearDown() override {
ConfigService::Instance().setDataSearchDirs(m_dataSearchDirs);
ConfigService::Instance().setString("default.facility", "NONE");
ConfigService::Instance().setString("default.instrument", m_instName);
AnalysisDataService::Instance().clear();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment