File: 01-Fix_log_test.patch

package info (click to toggle)
golang-github-prometheus-common 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 808 kB
  • sloc: makefile: 10
file content (12 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
Description: The logging library leaves a trailing space.
--- a/log/log_test.go
+++ b/log/log_test.go
@@ -32,7 +32,7 @@
 	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)
 	}