Skip to content

Commit 3c5c4ca

Browse files
committed
Fix a broken test.
1 parent 0c7f61f commit 3c5c4ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fmttests/format_error_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ Error types: (1) *errbase.errorFormatter (2) *errors.errorString`
5656
// Regression test.
5757
f := &fmtWrap{err}
5858
tt.CheckEqual(string(redact.Sprintf("%v", f)), sm+`hello`+em)
59-
tt.CheckEqual(string(redact.Sprintf("%+v", f)), sm+`hello`+em)
59+
expected = sm + `hello` + em + `
60+
` + sm + `(1) hello` + em + `
61+
` + sm + `Error types: (1) *errors.errorString` + em
62+
tt.CheckEqual(string(redact.Sprintf("%+v", f)), expected)
6063

6164
// Regression test 2.
6265
f2 := &fmter{}

0 commit comments

Comments
 (0)