fix: [test]fix #8174, create empty config file under HOME dir
The server always create an empty config file in user's home dir, set tmp config file path for the unittest in order to fix this issue. Log: Fix unittest create empty config file.
This commit is contained in:
committed by
Chris Rizzitello
parent
942070950d
commit
d093894743
@ -87,12 +87,17 @@ class CoreProcessTests : public Test
|
||||
public:
|
||||
CoreProcessTests() : m_coreProcess(m_appConfig, m_serverConfig, m_pDeps)
|
||||
{
|
||||
ON_CALL(m_appConfig, useExternalConfig()).WillByDefault(testing::Return(true));
|
||||
ON_CALL(m_appConfig, configFile()).WillByDefault(testing::ReturnRef(m_configFile));
|
||||
}
|
||||
|
||||
NiceMock<AppConfigMock> m_appConfig;
|
||||
NiceMock<ServerConfigMock> m_serverConfig;
|
||||
std::shared_ptr<NiceMock<DepsMock>> m_pDeps = std::make_shared<NiceMock<DepsMock>>();
|
||||
CoreProcess m_coreProcess;
|
||||
|
||||
private:
|
||||
const QString m_configFile = "tmp/deskflow-server.conf";
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user