summaryrefslogtreecommitdiff
path: root/libgo/go/old/netchan/netchan_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/old/netchan/netchan_test.go')
-rw-r--r--libgo/go/old/netchan/netchan_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/old/netchan/netchan_test.go b/libgo/go/old/netchan/netchan_test.go
index 8c0f9a6e4b7..d11a6708661 100644
--- a/libgo/go/old/netchan/netchan_test.go
+++ b/libgo/go/old/netchan/netchan_test.go
@@ -156,7 +156,7 @@ func TestErrorForIllegalChannel(t *testing.T) {
}()
select {
case err = <-imp.Errors():
- if strings.Index(err.String(), "no such channel") < 0 {
+ if strings.Index(err.Error(), "no such channel") < 0 {
t.Error("wrong error for nonexistent channel:", err)
}
case <-timeout: