diff options
| author | Dominik Honnef <dominik@honnef.co> | 2015-10-28 08:10:46 +0100 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2015-11-10 00:30:41 +0000 |
| commit | b18a5600c2f0b32a0997553b512b1c747a040cd4 (patch) | |
| tree | 4a55841eb392c04b8ae5f7578ea05e9288570d14 /src/html | |
| parent | b46df69541fd0661491245ffd13285d829778fd8 (diff) | |
| download | go-b18a5600c2f0b32a0997553b512b1c747a040cd4.tar.xz | |
html/template, encoding/asn1: fix test errors
Change-Id: I1da1d718609eb6a7b78d29b173ec780bde22c687
Reviewed-on: https://go-review.googlesource.com/16422
Reviewed-by: Ralph Corderoy <ralph@inputplus.co.uk>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/html')
| -rw-r--r-- | src/html/template/clone_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/template/clone_test.go b/src/html/template/clone_test.go index a0f1d6a048..d7c62fa399 100644 --- a/src/html/template/clone_test.go +++ b/src/html/template/clone_test.go @@ -81,7 +81,7 @@ func TestClone(t *testing.T) { // Clone t0 as t4. Redefining the "lhs" template should not fail. t4 := Must(t0.Clone()) if _, err := t4.Parse(`{{define "lhs"}} OK {{end}}`); err != nil { - t.Error(`redefine "lhs": got err %v want non-nil`, err) + t.Errorf(`redefine "lhs": got err %v want nil`, err) } // Cloning t1 should fail as it has been executed. if _, err := t1.Clone(); err == nil { |
