Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesCheung96 authored and ti-chi-bot committed Jun 13, 2024
1 parent 5a9520d commit d2475d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions pkg/cmd/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ func TestParseCfg(t *testing.T) {
// We expect the default configuration here.
Messages: &config.MessagesConfig{
ClientMaxBatchInterval: config.TomlDuration(time.Millisecond * 10),
ClientMaxBatchSize: 8 * 1024 * 1024,
ClientMaxBatchCount: 128,
ClientMaxBatchSize: 64 * 1024 * 1024,
ClientMaxBatchCount: 1024,
ClientRetryRateLimit: 1.0,
ServerMaxPendingMessageCount: 102400,
ServerAckInterval: config.TomlDuration(time.Millisecond * 100),
ServerWorkerPoolSize: 4,
ServerWorkerPoolSize: 8,
MaxRecvMsgSize: 256 * 1024 * 1024,
KeepAliveTimeout: config.TomlDuration(time.Second * 10),
KeepAliveTime: config.TomlDuration(time.Second * 30),
Expand Down Expand Up @@ -469,12 +469,12 @@ cert-allowed-cn = ["dd","ee"]
// We expect the default configuration here.
Messages: &config.MessagesConfig{
ClientMaxBatchInterval: config.TomlDuration(time.Millisecond * 10),
ClientMaxBatchSize: 8 * 1024 * 1024,
ClientMaxBatchCount: 128,
ClientMaxBatchSize: 64 * 1024 * 1024,
ClientMaxBatchCount: 1024,
ClientRetryRateLimit: 1.0,
ServerMaxPendingMessageCount: 102400,
ServerAckInterval: config.TomlDuration(time.Millisecond * 100),
ServerWorkerPoolSize: 4,
ServerWorkerPoolSize: 8,
MaxRecvMsgSize: 256 * 1024 * 1024,
KeepAliveTimeout: config.TomlDuration(time.Second * 10),
KeepAliveTime: config.TomlDuration(time.Second * 30),
Expand Down Expand Up @@ -534,12 +534,12 @@ unknown3 = 3
// We expect the default configuration here.
Messages: &config.MessagesConfig{
ClientMaxBatchInterval: config.TomlDuration(time.Millisecond * 10),
ClientMaxBatchSize: 8 * 1024 * 1024,
ClientMaxBatchCount: 128,
ClientMaxBatchSize: 64 * 1024 * 1024,
ClientMaxBatchCount: 1024,
ClientRetryRateLimit: 1.0,
ServerMaxPendingMessageCount: 102400,
ServerAckInterval: config.TomlDuration(time.Millisecond * 100),
ServerWorkerPoolSize: 4,
ServerWorkerPoolSize: 8,
MaxRecvMsgSize: 256 * 1024 * 1024,
KeepAliveTimeout: config.TomlDuration(time.Second * 10),
KeepAliveTime: config.TomlDuration(time.Second * 30),
Expand Down
6 changes: 3 additions & 3 deletions pkg/config/config_test_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ const (
},
"messages": {
"client-max-batch-interval": 10000000,
"client-max-batch-size": 8388608,
"client-max-batch-count": 128,
"client-max-batch-size": 67108864,
"client-max-batch-count": 1024,
"client-retry-rate-limit": 1,
"server-max-pending-message-count": 102400,
"server-ack-interval": 100000000,
"server-worker-pool-size": 4,
"server-worker-pool-size": 8,
"max-recv-msg-size": 268435456,
"keep-alive-time": 30000000000,
"keep-alive-timeout": 10000000000
Expand Down

0 comments on commit d2475d6

Please sign in to comment.