From 0cf8f7628580d352d9b6f09403cfe06bb9c7a681 Mon Sep 17 00:00:00 2001 From: VitorVieiraZ Date: Thu, 14 Nov 2024 08:30:00 -0300 Subject: [PATCH] fixing tests --- app/test/testmerginapi.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test/testmerginapi.cpp b/app/test/testmerginapi.cpp index bf8a3966a..f42417baa 100644 --- a/app/test/testmerginapi.cpp +++ b/app/test/testmerginapi.cpp @@ -2994,6 +2994,9 @@ void TestMerginApi::testDownloadWithNetworkError() LocalProject localProject = mApi->localProjectsManager().projectFromMerginName( mWorkspaceName, projectName ); QVERIFY( !localProject.isValid() ); + // Disconnect all signals + disconnect( mApi, &MerginApi::downloadItemsStarted, this, nullptr ); + // Restore the original manager QNetworkAccessManager *originalManager = new QNetworkAccessManager( this ); mApi->setNetworkManager( originalManager );