File: 01-Fix-tests.patch

package info (click to toggle)
golang-github-hashicorp-serf 0.8.1%2Bgit20180508.80ab4877~ds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,276 kB
  • sloc: sh: 412; python: 11; makefile: 7
file content (32 lines) | stat: -rw-r--r-- 1,004 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
28
29
30
31
32
Skip failing tests: syslog test requires a running syslogd; TestCommandRun_mDNS
does not seem to work in sbuild/pbuilder.

--- a/cmd/serf/command/agent/command_test.go
+++ b/cmd/serf/command/agent/command_test.go
@@ -221,6 +221,7 @@
 }
 
 func TestCommandRun_mDNS(t *testing.T) {
+	t.SkipNow()
 	// mDNS does not work in travis
 	if os.Getenv("TRAVIS") != "" {
 		t.SkipNow()
--- a/cmd/serf/command/agent/syslog_test.go
+++ b/cmd/serf/command/agent/syslog_test.go
@@ -1,3 +1,5 @@
+// +build ignore
+
 package agent
 
 import (
--- a/coordinate/client_test.go
+++ b/coordinate/client_test.go
@@ -80,7 +80,7 @@
 	dist := client.DistanceTo(other)
 
 	// Update with a series of invalid ping periods, should return an error and estimated rtt remains unchanged
-	pings := []int{1<<63 - 1, -35, 11}
+	pings := []int64{1<<63 - 1, -35, 11}
 
 	for _, ping := range pings {
 		expectedErr := fmt.Errorf("round trip time not in valid range, duration %v is not a positive value less than %v", ping, 10*time.Second)