]> Cypherpunks repositories - gostls13.git/commitdiff
netchan: be less chatty during gotest
authorRuss Cox <rsc@golang.org>
Tue, 11 May 2010 21:57:08 +0000 (14:57 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 11 May 2010 21:57:08 +0000 (14:57 -0700)
R=r
CC=golang-dev
https://golang.org/cl/1186041

src/pkg/netchan/netchan_test.go

index cdf709406107b4e40ab6e50ecf3556857f92fb28..bce37c866963e32cedef81dce6bd3ff4e2804a02 100644 (file)
@@ -4,10 +4,7 @@
 
 package netchan
 
-import (
-       "fmt"
-       "testing"
-)
+import "testing"
 
 type value struct {
        i int
@@ -35,7 +32,6 @@ func exportReceive(exp *Exporter, t *testing.T) {
        }
        for i := 0; i < count; i++ {
                v := <-ch
-               fmt.Printf("%v\n", v)
                if v.i != 45+i || v.s != "hello" {
                        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) {
        }
        for i := 0; i < count; i++ {
                v := <-ch
-               fmt.Printf("%v\n", v)
                if v.i != 23+i || v.s != "hello" {
                        t.Errorf("importReceive: bad value: expected %d, hello; got %+v", 23+i, v)
                }