Package: golang-github-prometheus-common / 0.15.0-2

01-Fix_log_test.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Date: Sun, 25 Oct 2020 17:04:38 +0800
Subject: The logging library leaves a trailing space.

---
 log/log_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log/log_test.go b/log/log_test.go
index f63b441..e923fbb 100644
--- a/log/log_test.go
+++ b/log/log_test.go
@@ -32,7 +32,7 @@ func TestFileLineLogging(t *testing.T) {
 	Debug("This debug-level line should not show up in the output.")
 	Infof("This %s-level line should show up in the output.", "info")
 
-	re := `^time=".*" level=info msg="This info-level line should show up in the output." source="log_test.go:33"\n$`
+	re := `^time=".*" level=info msg="This info-level line should show up in the output." source="log_test.go:33" *\n$`
 	if !regexp.MustCompile(re).Match(buf.Bytes()) {
 		t.Fatalf("%q did not match expected regex %q", buf.String(), re)
 	}