prevents modifying real user config file

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2022-11-23 16:56:35 +01:00 committed by Matthieu Gallien
parent a9c5842dcc
commit 1e12fc951d

View file

@ -32,6 +32,9 @@ signals:
private slots:
void testLeaveShare()
{
QTemporaryDir dir;
ConfigFile::setConfDir(dir.path()); // we don't want to pollute the user's config file
constexpr auto firstSharePath = "A/sharedwithme_A.txt";
constexpr auto secondSharePath = "A/B/sharedwithme_B.data";