Skip to content

Commit

Permalink
Re #7657. Reset the config to the default at the start.
Browse files Browse the repository at this point in the history
Running the KernelTest executable directly showed that a previous test
had changed it so this test failed.
  • Loading branch information
RussellTaylor committed Aug 5, 2013
1 parent 346187f commit 97b00b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/Framework/Kernel/test/FileDescriptorTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ class FileDescriptorTest : public CxxTest::TestSuite

FileDescriptorTest()
{
using Mantid::Kernel::ConfigService;
auto dataPaths = ConfigService::Instance().getDataSearchDirs();
auto& cfg = Mantid::Kernel::ConfigService::Instance();
cfg.reset();
const auto& dataPaths = cfg.getDataSearchDirs();
for(auto it = dataPaths.begin(); it != dataPaths.end(); ++it)
{
Poco::Path nxsPath(*it, "CNCS_7860_event.nxs");
Expand Down

0 comments on commit 97b00b4

Please sign in to comment.