Commit 128835ec authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Merge pull request #7885 from hurf/master

Update errors_test.go
parents 7882d1ee f42a18d3
...@@ -91,7 +91,7 @@ func TestPluralAggregate(t *testing.T) { ...@@ -91,7 +91,7 @@ func TestPluralAggregate(t *testing.T) {
t.Errorf("expected '[abc, 123]', got %q", s) t.Errorf("expected '[abc, 123]', got %q", s)
} }
if s := agg.Errors(); len(s) != 2 { if s := agg.Errors(); len(s) != 2 {
t.Errorf("expected one-element slice, got %#v", s) t.Errorf("expected two-elements slice, got %#v", s)
} }
if s := agg.Errors()[0].Error(); s != "abc" { if s := agg.Errors()[0].Error(); s != "abc" {
t.Errorf("expected '[abc, 123]', got %q", s) t.Errorf("expected '[abc, 123]', got %q", s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment