Explorar o código

enable debug log for some automated tests

should help investigate failure for automated tests

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Matthieu Gallien %!s(int64=2) %!d(string=hai) anos
pai
achega
a67b7b2f0f
Modificáronse 2 ficheiros con 9 adicións e 0 borrados
  1. 4 0
      test/testpermissions.cpp
  2. 5 0
      test/testsyncengine.cpp

+ 4 - 0
test/testpermissions.cpp

@@ -67,6 +67,10 @@ class TestPermissions : public QObject
     Q_OBJECT
 
 private slots:
+    void initTestCase()
+    {
+        OCC::Logger::instance()->setLogDebug(true);
+    }
 
     void t7pl()
     {

+ 5 - 0
test/testsyncengine.cpp

@@ -85,6 +85,11 @@ class TestSyncEngine : public QObject
     Q_OBJECT
 
 private slots:
+    void initTestCase()
+    {
+        OCC::Logger::instance()->setLogDebug(true);
+    }
+
     void testFileDownload() {
         FakeFolder fakeFolder{FileInfo::A12_B12_C12_S12()};
         ItemCompletedSpy completeSpy(fakeFolder);