fix cleanup of settings for tests
This commit is contained in:
parent
d4053297c8
commit
b5d77460c0
@ -94,11 +94,12 @@ private:
|
|||||||
|
|
||||||
void TestJSONRPC::initTestcase()
|
void TestJSONRPC::initTestcase()
|
||||||
{
|
{
|
||||||
|
QCoreApplication::instance()->setOrganizationName("guh-test");
|
||||||
|
|
||||||
// If testcase asserts cleanup won't do. Lets clear any previous test run settings leftovers
|
// If testcase asserts cleanup won't do. Lets clear any previous test run settings leftovers
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
settings.clear();
|
settings.clear();
|
||||||
|
|
||||||
QCoreApplication::instance()->setOrganizationName("guh-test");
|
|
||||||
m_commandId = 0;
|
m_commandId = 0;
|
||||||
|
|
||||||
GuhCore::instance();
|
GuhCore::instance();
|
||||||
|
|||||||
Reference in New Issue
Block a user