From bfebc67eb7d3db8f0b221444a8eacd16e65533d7 Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 10 Jul 2023 12:28:32 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/rpc_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rpc/rpc_test.go b/rpc/rpc_test.go index 2965c1b..59479c8 100644 --- a/rpc/rpc_test.go +++ b/rpc/rpc_test.go @@ -2,6 +2,7 @@ package rpc import ( "context" + "math/rand" "testing" "time" @@ -20,12 +21,12 @@ func (tr *testReceiver) TargetExists(tid primitive.ObjectID) bool { func (tr *testReceiver) TestFunc(a string, b string, c int) { target := primitive.NewObjectID() - target[0] = 0 + target[0] = byte(rand.Intn(2) * 20) if CallOrGo(tr, target, a, b) != ErrCanExecuteHere { return } - logger.Println(" ", a, b) + logger.Println(" ", a, b, target[0]) } func TestRpc(t *testing.T) {