mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 19:39:21 +08:00
Add unittest for distributed indexnode (#7991)
Signed-off-by: yhmo <yihua.mo@zilliz.com>
This commit is contained in:
parent
75c80c12cb
commit
e6450b0d96
@ -14,7 +14,9 @@ package grpcindexnodeclient
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/milvus-io/milvus/internal/distributed/grpcconfigs"
|
||||
"github.com/milvus-io/milvus/internal/log"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@ -23,4 +25,12 @@ func TestParamTable(t *testing.T) {
|
||||
|
||||
log.Info("TestParamTable", zap.Int("ClientMaxSendSize", Params.ClientMaxSendSize))
|
||||
log.Info("TestParamTable", zap.Int("ClientMaxRecvSize", Params.ClientMaxRecvSize))
|
||||
|
||||
Params.Remove("indexNode.grpc.clientMaxSendSize")
|
||||
Params.initClientMaxSendSize()
|
||||
assert.Equal(t, Params.ClientMaxSendSize, grpcconfigs.DefaultClientMaxSendSize)
|
||||
|
||||
Params.Remove("indexNode.grpc.clientMaxRecvSize")
|
||||
Params.initClientMaxRecvSize()
|
||||
assert.Equal(t, Params.ClientMaxRecvSize, grpcconfigs.DefaultClientMaxRecvSize)
|
||||
}
|
||||
|
@ -14,7 +14,9 @@ package grpcindexnode
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/milvus-io/milvus/internal/distributed/grpcconfigs"
|
||||
"github.com/milvus-io/milvus/internal/log"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@ -23,4 +25,12 @@ func TestParamTable(t *testing.T) {
|
||||
|
||||
log.Info("TestParamTable", zap.Int("ServerMaxSendSize", Params.ServerMaxSendSize))
|
||||
log.Info("TestParamTable", zap.Int("ServerMaxRecvSize", Params.ServerMaxRecvSize))
|
||||
|
||||
Params.Remove("indexNode.grpc.ServerMaxSendSize")
|
||||
Params.initServerMaxSendSize()
|
||||
assert.Equal(t, Params.ServerMaxSendSize, grpcconfigs.DefaultServerMaxSendSize)
|
||||
|
||||
Params.Remove("indexNode.grpc.ServerMaxRecvSize")
|
||||
Params.initServerMaxRecvSize()
|
||||
assert.Equal(t, Params.ServerMaxRecvSize, grpcconfigs.DefaultServerMaxRecvSize)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user