THRIFT-3428 go test fail on busy_machine
add some timeouts after server startup so clients do not connect too early
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 @@
"net"
"testing"
"thrift"
+ "time"
)
func FindAvailableTCPServerPort() net.Addr {
@@ -68,6 +69,7 @@
processor.RegisterProcessor("SecondService", secondProcessor)
go server.Serve()
+ time.Sleep(10 * time.Millisecond)
}
var firstClient *multiplexedprotocoltest.FirstClient
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 @@
server = thrift.NewTSimpleServer2(processor, serverTransport)
go server.Serve()
+ time.Sleep(10 * time.Millisecond)
}
func TestInitOnewayClient(t *testing.T) {