Commit 75dbbd21 authored by Russ Cox's avatar Russ Cox

netchan: be less chatty during gotest

R=r
CC=golang-dev
https://golang.org/cl/1186041
parent 4e5bc6a8
...@@ -4,10 +4,7 @@ ...@@ -4,10 +4,7 @@
package netchan package netchan
import ( import "testing"
"fmt"
"testing"
)
type value struct { type value struct {
i int i int
...@@ -35,7 +32,6 @@ func exportReceive(exp *Exporter, t *testing.T) { ...@@ -35,7 +32,6 @@ func exportReceive(exp *Exporter, t *testing.T) {
} }
for i := 0; i < count; i++ { for i := 0; i < count; i++ {
v := <-ch v := <-ch
fmt.Printf("%v\n", v)
if v.i != 45+i || v.s != "hello" { if v.i != 45+i || v.s != "hello" {
t.Errorf("export Receive: bad value: expected 4%d, hello; got %+v", 45+i, v) t.Errorf("export Receive: bad value: expected 4%d, hello; got %+v", 45+i, v)
} }
...@@ -50,7 +46,6 @@ func importReceive(imp *Importer, t *testing.T) { ...@@ -50,7 +46,6 @@ func importReceive(imp *Importer, t *testing.T) {
} }
for i := 0; i < count; i++ { for i := 0; i < count; i++ {
v := <-ch v := <-ch
fmt.Printf("%v\n", v)
if v.i != 23+i || v.s != "hello" { if v.i != 23+i || v.s != "hello" {
t.Errorf("importReceive: bad value: expected %d, hello; got %+v", 23+i, v) t.Errorf("importReceive: bad value: expected %d, hello; got %+v", 23+i, v)
} }
......
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