File: 0001-Disable-network-tests.patch

package info (click to toggle)
golang-google-grpc 1.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports-sloppy
  • size: 2,656 kB
  • sloc: sh: 66; makefile: 52
file content (27 lines) | stat: -rw-r--r-- 797 bytes parent folder | download
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
From: Shengjing Zhu <i@zhsj.me>
Date: Thu, 7 Sep 2017 14:41:40 +0800
Subject: Disable network tests

Signed-off-by: Shengjing Zhu <i@zhsj.me>
---
 clientconn_test.go | 2 ++
 1 file changed, 2 insertions(+)

--- a/clientconn_test.go
+++ b/clientconn_test.go
@@ -334,6 +334,7 @@
 }
 
 func TestDialTimeout(t *testing.T) {
+	t.Skip("Disable test that accesses the network.")
 	defer leakcheck.Check(t)
 	conn, err := Dial("passthrough:///Non-Existent.Server:80", WithTimeout(time.Millisecond), WithBlock(), WithInsecure())
 	if err == nil {
@@ -345,6 +346,7 @@
 }
 
 func TestTLSDialTimeout(t *testing.T) {
+	t.Skip("Disable test that accesses the network.")
 	defer leakcheck.Check(t)
 	creds, err := credentials.NewClientTLSFromFile(testdata.Path("ca.pem"), "x.test.youtube.com")
 	if err != nil {