File: 0002-Disable-tests-using-Internet.patch

package info (click to toggle)
ros-resource-retriever 1.12.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 140 kB
  • sloc: cpp: 224; python: 65; xml: 31; makefile: 5
file content (46 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Mon, 8 Jun 2020 22:52:15 +0200
Subject: Disable tests using Internet

---
 test/test.cpp | 2 ++
 test/test.py  | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/test/test.cpp b/test/test.cpp
index 89b95a3..166f9e6 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -83,6 +83,7 @@ TEST(Retriever, largeFile)
   }
 }
 
+#if 0
 TEST(Retriever, http)
 {
   try
@@ -97,6 +98,7 @@ TEST(Retriever, http)
     FAIL();
   }
 }
+#endif
 
 TEST(Retriever, invalidFiles)
 {
diff --git a/test/test.py b/test/test.py
index 54f20aa..e96c07a 100644
--- a/test/test.py
+++ b/test/test.py
@@ -19,9 +19,9 @@ def test_get_large_file():
     res = r.get("package://resource_retriever/test/large_filepy.dat")
     assert len(res) == 1024*1024*50
 
-def test_http():
-    res = r.get("http://packages.ros.org/ros.key")
-    assert len(res) > 0
+#def test_http():
+#    res = r.get("http://packages.ros.org/ros.key")
+#    assert len(res) > 0
 
 @raises(Exception)
 def test_invalid_file():