]> Cypherpunks repositories - gostls13.git/commitdiff
netchan: fix unimportant typo in test error call.
authorRob Pike <r@golang.org>
Mon, 20 Sep 2010 07:24:40 +0000 (17:24 +1000)
committerRob Pike <r@golang.org>
Mon, 20 Sep 2010 07:24:40 +0000 (17:24 +1000)
R=adg
CC=golang-dev
https://golang.org/cl/2211044

src/pkg/netchan/netchan_test.go

index 4240b07869cd856de30a0b8e347c8b48920a6a36..c695db6ad8276488988b307df424f9938b269577 100644 (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")