1
0
mirror of https://github.com/golang/go synced 2024-11-21 15:54:43 -07:00

netchan: fix unimportant typo in test error call.

R=adg
CC=golang-dev
https://golang.org/cl/2211044
This commit is contained in:
Rob Pike 2010-09-20 17:24:40 +10:00
parent da705c6212
commit 724886b0c0

View File

@ -170,7 +170,7 @@ func TestErrorForIllegalChannel(t *testing.T) {
select {
case err = <-imp.Errors():
if strings.Index(err.String(), "no such channel") < 0 {
t.Errorf("wrong error for nonexistent channel:", err)
t.Error("wrong error for nonexistent channel:", err)
}
case <-timeout:
t.Error("import of nonexistent channel did not receive an error")