[folks] tests: Disable the GVFS remote volume monitor when running tests



commit 44308b7eb6ff90c5a01b1c94643b94ce8e7c48d8
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Mon Feb 2 16:35:06 2015 +0000

    tests: Disable the GVFS remote volume monitor when running tests
    
    We don’t need it, and it can cause GVFS to emit a warning about not
    being able to spawn org.gtk.vfs.Daemon, which will cause our tests to
    fail.

 tests/lib/test-case.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/lib/test-case.vala b/tests/lib/test-case.vala
index e0e919f..ed2dfb8 100644
--- a/tests/lib/test-case.vala
+++ b/tests/lib/test-case.vala
@@ -366,6 +366,10 @@ public abstract class Folks.TestCase : Object
        * are OK. */
       Environment.set_variable ("FOLKS_TESTS_SANDBOXED_DBUS", "no-services",
           true);
+
+      /* Disable the GVFS remote volume monitor so we don’t have to mock the
+       * org.gtk.vfs.Daemon D-Bus service. */
+      Environment.set_variable ("GVFS_REMOTE_VOLUME_MONITOR_IGNORE", "1", true);
     }
 
   public void register ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]