Skip to content

Commit 75940c9

Browse files
committed
add sleep
1 parent 772c733 commit 75940c9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/auto/autoupdatercore/UpdaterTest/installercontroller.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ InstallerController::InstallerController(QObject *parent) :
1414
_version(1, 0, 0),
1515
_buildDir()
1616
{
17-
_buildDir.setAutoRemove(false);
1817
setVersion(_version);
1918
}
2019

@@ -71,6 +70,7 @@ void InstallerController::installLocal()
7170
auto res = QProcess::execute(toSystemExe(_buildDir.path() + "/QtAutoUpdaterTestInstaller"), {"--script", configScript, "--verbose"});
7271
#endif
7372
QCOMPARE(res, 0);
73+
QThread::sleep(3);//wait to make shure the asynchronous renaming completed
7474
}
7575

7676
void InstallerController::runUpdater()
@@ -85,10 +85,6 @@ QVersionNumber InstallerController::version() const
8585

8686
QString InstallerController::maintenanceToolPath() const
8787
{
88-
qDebug() << _buildDir.path() << QDir(_buildDir.path()).exists();
89-
qDebug() << QDir(_buildDir.path()).entryList();
90-
qDebug() << _buildDir.path() + "/install" << QDir(_buildDir.path() + "/install").exists();
91-
qDebug() << QDir(_buildDir.path() + "/install").entryList();
9288
return _buildDir.path() + "/install";
9389
}
9490

0 commit comments

Comments
 (0)