| 1 |
From: Shengjing Zhu <[email protected]> |
| 2 |
Date: Sun, 27 Mar 2022 18:43:42 +0800 |
| 3 |
Subject: python3 |
| 4 |
|
| 5 |
--- |
| 6 |
codec/codec_test.go | 6 +++--- |
| 7 |
1 file changed, 3 insertions(+), 3 deletions(-) |
| 8 |
|
| 9 |
diff --git a/codec/codec_test.go b/codec/codec_test.go |
| 10 |
index c9fe3ff..4f409b6 100644 |
| 11 |
--- a/codec/codec_test.go |
| 12 |
+++ b/codec/codec_test.go |
| 13 |
@@ -1967,7 +1967,7 @@ func doTestPythonGenStreams(t *testing.T, h Handle) { |
| 14 |
if testVerbose { |
| 15 |
t.Logf("tmpdir: %v", tmpdir) |
| 16 |
} |
| 17 |
|
| 18 |
+ cmd := exec.Command("python3", "test.py", "testdata", tmpdir) |
| 19 |
//cmd.Stdin = strings.NewReader("some input") |
| 20 |
//cmd.Stdout = &out |
| 21 |
var cmdout []byte |
| 22 |
@@ -2082,7 +2082,7 @@ func doTestMsgpackRpcSpecGoClientToPythonSvc(t *testing.T, h Handle) { |
| 23 |
r := rand.New(rand.NewSource(time.Now().UnixNano())) |
| 24 |
openPort := strconv.FormatInt(6700+r.Int63n(99), 10) |
| 25 |
// openPort := "6792" |
| 26 |
|
| 27 |
+ cmd := exec.Command("python3", "test.py", "rpc-server", openPort, "4") |
| 28 |
testCheckErr(t, cmd.Start()) |
| 29 |
bs, err2 := net.Dial("tcp", ":"+openPort) |
| 30 |
maxSleepTime := 500 * time.Millisecond |
| 31 |
@@ -2112,7 +2112,7 @@ func doTestMsgpackRpcSpecPythonClientToGoSvc(t *testing.T, h Handle) { |
| 32 |
// seems 10ms is not enough for test run; set high to 1 second, and client will close when done |
| 33 |
exitSleepDur := 1000 * time.Millisecond |
| 34 |
port := doTestCodecRpcOne(t, MsgpackSpecRpc, h, false, exitSleepDur) |
| 35 |
|
| 36 |
+ cmd := exec.Command("python3", "test.py", "rpc-client-go-service", strconv.Itoa(port)) |
| 37 |
var cmdout []byte |
| 38 |
var err error |
| 39 |
if cmdout, err = cmd.CombinedOutput(); err != nil { |