File: 0001-Disable_network_tests.patch

package info (click to toggle)
golang-google-grpc 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,400 kB
  • sloc: makefile: 60; sh: 40
file content (18 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/clientconn_test.go
+++ b/clientconn_test.go
@@ -46,6 +46,7 @@
 const tlsDir = "testdata/"
 
 func TestDialTimeout(t *testing.T) {
+	t.Skip("Disable test that accesses the network.")
 	conn, err := Dial("Non-Existent.Server:80", WithTimeout(time.Millisecond), WithBlock(), WithInsecure())
 	if err == nil {
 		conn.Close()
@@ -56,6 +57,7 @@
 }
 
 func TestTLSDialTimeout(t *testing.T) {
+	t.Skip("Disable test that accesses the network.")
 	creds, err := credentials.NewClientTLSFromFile(tlsDir+"ca.pem", "x.test.youtube.com")
 	if err != nil {
 		t.Fatalf("Failed to create credentials %v", err)