[gxml] Remote file retrieve test just if internet is full available



commit 49d96a49b06a04d137c66285a9a1dac7e8b82af4
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Jan 28 19:29:55 2016 -0600

    Remote file retrieve test just if internet is full available

 test/DocumentTest.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/test/DocumentTest.vala b/test/DocumentTest.vala
index 1dc6956..9dc42c0 100644
--- a/test/DocumentTest.vala
+++ b/test/DocumentTest.vala
@@ -127,6 +127,8 @@ class DocumentTest : GXmlTest {
                        });
                Test.add_func ("/gxml/document/gfile/remote", () => {
                        try {
+                               var net = GLib.NetworkMonitor.get_default ();
+                               if (net.connectivity != GLib.NetworkConnectivity.FULL) return;
                                var rf = GLib.File.new_for_uri 
("https://git.gnome.org/browse/gxml/plain/gxml.doap";);
                                assert (rf.query_exists ());
                                var d = new xDocument.from_gfile (rf);


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