Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
75dbbd21
Commit
75dbbd21
authored
May 11, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netchan: be less chatty during gotest
R=r CC=golang-dev
https://golang.org/cl/1186041
parent
4e5bc6a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
netchan_test.go
src/pkg/netchan/netchan_test.go
+1
-6
No files found.
src/pkg/netchan/netchan_test.go
View file @
75dbbd21
...
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment