OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libgo: Update to weekly.2011-12-14.
[pf3gnuchains/gcc-fork.git]
/
libgo
/
go
/
old
/
netchan
/
netchan_test.go
diff --git
a/libgo/go/old/netchan/netchan_test.go
b/libgo/go/old/netchan/netchan_test.go
index
d11a670
..
53f0f78
100644
(file)
--- a/
libgo/go/old/netchan/netchan_test.go
+++ b/
libgo/go/old/netchan/netchan_test.go
@@
-151,7
+151,7
@@
func TestErrorForIllegalChannel(t *testing.T) {
// Expect an error now. Start a timeout.
timeout := make(chan bool, 1) // buffered so closure will not hang around.
go func() {
// Expect an error now. Start a timeout.
timeout := make(chan bool, 1) // buffered so closure will not hang around.
go func() {
- time.Sleep(10
e9
) // very long, to give even really slow machines a chance.
+ time.Sleep(10
* time.Second
) // very long, to give even really slow machines a chance.
timeout <- true
}()
select {
timeout <- true
}()
select {
@@
-300,7
+300,7
@@
func TestIndependentSends(t *testing.T) {
go importReceive(imp, t, done)
// wait for export side to try to deliver some values.
go importReceive(imp, t, done)
// wait for export side to try to deliver some values.
- time.Sleep(
0.25e9
)
+ time.Sleep(
250 * time.Millisecond
)
ctlch := make(chan int)
if err := imp.ImportNValues("exportedCtl", ctlch, Send, 1, 1); err != nil {
ctlch := make(chan int)
if err := imp.ImportNValues("exportedCtl", ctlch, Send, 1, 1); err != nil {
@@
-409,7
+409,7
@@
func TestImportFlowControl(t *testing.T) {
func testFlow(sendDone chan bool, ch <-chan int, N int, t *testing.T) {
go func() {
func testFlow(sendDone chan bool, ch <-chan int, N int, t *testing.T) {
go func() {
- time.Sleep(
0.5e9
)
+ time.Sleep(
500 * time.Millisecond
)
sendDone <- false
}()
sendDone <- false
}()