File: disable-tests-that-require-internet.patch

package info (click to toggle)
rust-reqwest 0.12.15-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,820 kB
  • sloc: makefile: 2
file content (30 lines) | stat: -rw-r--r-- 879 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
--- a/tests/client.rs
+++ b/tests/client.rs
@@ -421,2 +421,3 @@
 #[tokio::test]
+#[cfg(feature = "__debian__with-internet")]
 async fn test_allowed_methods() {
@@ -445,2 +446,3 @@
 #[cfg(feature = "json")]
+#[cfg(feature = "__debian__with-internet")]
 fn add_json_default_content_type_if_not_set_manually() {
@@ -461,2 +463,3 @@
 #[cfg(feature = "json")]
+#[cfg(feature = "__debian__with-internet")]
 fn update_json_content_type_if_set_manually() {
@@ -475,2 +478,3 @@
 #[tokio::test]
+#[cfg(feature = "__debian__with-internet")]
 async fn test_tls_info() {
--- a/tests/blocking.rs
+++ b/tests/blocking.rs
@@ -323,2 +323,3 @@
 #[test]
+#[cfg(feature = "__debian__with-internet")]
 fn test_allowed_methods_blocking() {
--- a/tests/proxy.rs
+++ b/tests/proxy.rs
@@ -166,2 +166,3 @@
 #[tokio::test]
+#[cfg(feature = "__debian__with-internet")]
 async fn test_using_system_proxy() {