You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2016/01/17 09:13:53 UTC
thrift git commit: THRIFT-3428 go test fail on busy_machine
Repository: thrift
Updated Branches:
refs/heads/master 420ee1e7f -> 8b5e2e7c8
THRIFT-3428 go test fail on busy_machine
add some timeouts after server startup so clients do not connect too early
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/8b5e2e7c
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/8b5e2e7c
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/8b5e2e7c
Branch: refs/heads/master
Commit: 8b5e2e7c8efaa12c63d0e40fe0b5d304c7721ba2
Parents: 420ee1e
Author: Roger Meier <ro...@bufferoverflow.ch>
Authored: Sun Jan 17 09:09:44 2016 +0100
Committer: Roger Meier <ro...@bufferoverflow.ch>
Committed: Sun Jan 17 09:09:44 2016 +0100
----------------------------------------------------------------------
lib/go/test/tests/multiplexed_protocol_test.go | 2 ++
lib/go/test/tests/one_way_test.go | 1 +
2 files changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/8b5e2e7c/lib/go/test/tests/multiplexed_protocol_test.go
----------------------------------------------------------------------
diff --git a/lib/go/test/tests/multiplexed_protocol_test.go b/lib/go/test/tests/multiplexed_protocol_test.go
index 00669ef..b1674bd 100644
--- a/lib/go/test/tests/multiplexed_protocol_test.go
+++ b/lib/go/test/tests/multiplexed_protocol_test.go
@@ -24,6 +24,7 @@ import (
"net"
"testing"
"thrift"
+ "time"
)
func FindAvailableTCPServerPort() net.Addr {
@@ -68,6 +69,7 @@ func TestInitTwoServers(t *testing.T) {
processor.RegisterProcessor("SecondService", secondProcessor)
go server.Serve()
+ time.Sleep(10 * time.Millisecond)
}
var firstClient *multiplexedprotocoltest.FirstClient
http://git-wip-us.apache.org/repos/asf/thrift/blob/8b5e2e7c/lib/go/test/tests/one_way_test.go
----------------------------------------------------------------------
diff --git a/lib/go/test/tests/one_way_test.go b/lib/go/test/tests/one_way_test.go
index 3ff025f..5bb1dae 100644
--- a/lib/go/test/tests/one_way_test.go
+++ b/lib/go/test/tests/one_way_test.go
@@ -60,6 +60,7 @@ func TestInitOneway(t *testing.T) {
server = thrift.NewTSimpleServer2(processor, serverTransport)
go server.Serve()
+ time.Sleep(10 * time.Millisecond)
}
func TestInitOnewayClient(t *testing.T) {