Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test feat #699

Merged
merged 119 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
65e37a0
fix: add lock in db
icey-yu Aug 15, 2024
55ee04c
fix: add send wait time
icey-yu Aug 15, 2024
ac857c6
feat: un login send message and check
icey-yu Aug 16, 2024
4ed8340
test: fix send common group msg num
icey-yu Aug 16, 2024
01fdc3d
test: fix check login user friends
icey-yu Aug 16, 2024
c9aa97a
test: fix un login msg check
icey-yu Aug 16, 2024
db2c0ac
test: change msg send limit
icey-yu Aug 16, 2024
db08033
test: change msg send limit
icey-yu Aug 16, 2024
3f3dd1b
fix: remove some testMode change
icey-yu Aug 16, 2024
f68624f
test: fake send
icey-yu Aug 16, 2024
20a22e5
test: fake send
icey-yu Aug 16, 2024
376a341
test: send msg
icey-yu Aug 16, 2024
20a61fe
test: add log and operationID
icey-yu Aug 16, 2024
e6eb023
test: fake create group
icey-yu Aug 16, 2024
5e560c0
test: log level
icey-yu Aug 16, 2024
327505d
test: create group
icey-yu Aug 16, 2024
08706df
test: add import friends different operation id
icey-yu Aug 19, 2024
7ba40f4
test: add send msg cost
icey-yu Aug 19, 2024
0084d00
test: add send msg cost
icey-yu Aug 19, 2024
03338e1
test: feat bar print🔥
icey-yu Aug 20, 2024
47ac285
test: fix ansi
icey-yu Aug 20, 2024
f84a765
test: test muti bars
icey-yu Aug 20, 2024
6a58d7e
test: fix bars
icey-yu Aug 20, 2024
a8a8dbd
test: feat muti bars
icey-yu Aug 20, 2024
df1e8a3
test: fix lock progress
icey-yu Aug 20, 2024
db99e63
test: fix lock progress
icey-yu Aug 20, 2024
ad1e45d
test: test check
icey-yu Aug 20, 2024
db1e693
test: del check bar
icey-yu Aug 20, 2024
57668f1
test: close
icey-yu Aug 20, 2024
ed99449
test: clock
icey-yu Aug 20, 2024
4ee8f8d
test: clock
icey-yu Aug 20, 2024
ab4ecbd
test: test
icey-yu Aug 20, 2024
e7800a3
test: test
icey-yu Aug 20, 2024
8435b7c
test: add log
icey-yu Aug 20, 2024
ee5b9dc
test: test progress
icey-yu Aug 20, 2024
870b43b
test: test progress
icey-yu Aug 20, 2024
6ef6364
test: fix progress
icey-yu Aug 20, 2024
068fb3a
test: feat bar progress !
icey-yu Aug 20, 2024
5c6769d
test: no save
icey-yu Aug 20, 2024
0b275cb
test: change init logic
icey-yu Aug 21, 2024
44983cf
test: fix common group num
icey-yu Aug 21, 2024
7719e9a
test: stdout
icey-yu Aug 21, 2024
5f6134a
test: fix log
icey-yu Aug 21, 2024
17f4b91
test: capture panic
icey-yu Aug 21, 2024
828e792
test: del error
icey-yu Aug 21, 2024
2b513a4
test: del more one context method in login mgr
icey-yu Aug 21, 2024
a502d17
test: add log
icey-yu Aug 21, 2024
ca9cedf
test: add log
icey-yu Aug 21, 2024
011f8b0
test: fix ctx
icey-yu Aug 21, 2024
e46b3f3
test: change config
icey-yu Aug 23, 2024
647605e
test: fix progress send on close channel
icey-yu Aug 26, 2024
2c3fdde
test: fix progress send on close channel
icey-yu Aug 26, 2024
421c105
test: change msgtest
icey-yu Aug 26, 2024
f1f961b
test: fix progress
icey-yu Aug 26, 2024
f4270bd
test: merge main
icey-yu Aug 27, 2024
89e6630
test: change default config
icey-yu Aug 27, 2024
843c32a
test: add log in get token
icey-yu Aug 27, 2024
8b702c2
test: add error
icey-yu Aug 27, 2024
9f15d41
test: change admin userid
icey-yu Aug 27, 2024
7a17280
test: change gen online user id in msgtest
icey-yu Aug 27, 2024
1a7899e
test: add log in listener
icey-yu Aug 28, 2024
d3e0993
test: fix logout users
icey-yu Aug 28, 2024
a4144c6
test: fix bar length
icey-yu Aug 28, 2024
2758a2d
test: fix statistics
icey-yu Aug 29, 2024
ddd1094
test: add sleep
icey-yu Aug 30, 2024
6071597
test: update stat msg
icey-yu Aug 30, 2024
f20fce1
test: add sleep in send msg
icey-yu Aug 30, 2024
5ce0957
test: add sleep in send msg
icey-yu Aug 30, 2024
0bee775
test: change platform
icey-yu Aug 30, 2024
0f7e96f
test: change stat
icey-yu Aug 30, 2024
bff1d1c
test: go mod && debug bar
icey-yu Sep 2, 2024
c828bd7
test: change send wait time
icey-yu Sep 2, 2024
9dcb10f
test: change gen id in msgtest
icey-yu Sep 2, 2024
b0c9257
test: feat stat msg
icey-yu Sep 2, 2024
72fb2b0
test: feat large group member set
icey-yu Sep 2, 2024
3017434
test: fix large group member set
icey-yu Sep 2, 2024
a2556fb
test: fix msg print
icey-yu Sep 2, 2024
75d1ddb
test: fix msg print
icey-yu Sep 2, 2024
f21f5ab
test: stat add unit
icey-yu Sep 2, 2024
570098d
test: print flag
icey-yu Sep 2, 2024
0947e0f
test: operationID
icey-yu Sep 2, 2024
046aff4
test: feat stat print
icey-yu Sep 2, 2024
21613c9
test: fix stat
icey-yu Sep 2, 2024
e3496b3
test: fix gen userIDs
icey-yu Sep 2, 2024
3e6cbbf
test: stat
icey-yu Sep 2, 2024
f836c8b
test: stat send time
icey-yu Sep 3, 2024
94ca857
test: fix send msg
icey-yu Sep 3, 2024
b423144
test: feat login check
icey-yu Sep 3, 2024
c685f72
test: only stat text msg
icey-yu Sep 3, 2024
3c48679
test: optimize create group
icey-yu Sep 3, 2024
2b6ed25
test: feat invite user to group log
icey-yu Sep 3, 2024
4127dd3
test: add operationID in invite
icey-yu Sep 3, 2024
cd97809
test: fix add friend error
icey-yu Sep 4, 2024
fa35157
test: feat add group member cache
icey-yu Sep 4, 2024
10e0f0a
test: merge main add add-memcache
icey-yu Sep 4, 2024
fb4d697
fix: get group member info from server
icey-yu Sep 4, 2024
cff95a0
fix: change http timeout
icey-yu Sep 4, 2024
8e1ae71
fix: change http timeout
icey-yu Sep 4, 2024
e38ff12
fix: change http timeout
icey-yu Sep 4, 2024
20b4562
fix: add sleep and split api
icey-yu Sep 5, 2024
d693c62
fix: del sleep
icey-yu Sep 5, 2024
4fd9206
test: fix msgtest gen userID
icey-yu Sep 6, 2024
35e50ca
test: change msg send time
icey-yu Sep 6, 2024
4f39ca2
test: change msg send time
icey-yu Sep 6, 2024
2af373c
test: change sleep time
icey-yu Sep 6, 2024
4617b12
test: change sleep time
icey-yu Sep 6, 2024
5624bac
test: test
icey-yu Sep 10, 2024
b70359b
test: add log
icey-yu Sep 10, 2024
ef9e3f3
test: fix stat msg
icey-yu Sep 10, 2024
d3d6deb
test: add sleep
icey-yu Sep 10, 2024
167a780
test: del sleep
icey-yu Sep 10, 2024
d1f09dc
test: add sleep
icey-yu Sep 10, 2024
5e50bdd
test: del sleep
icey-yu Sep 10, 2024
beb4502
test: fix cal common group
icey-yu Sep 11, 2024
e9b4e18
test: change send msg wait time
icey-yu Sep 11, 2024
207b4e6
test: fix create large group
icey-yu Sep 11, 2024
d7c2c74
test: fix check create large group
icey-yu Sep 11, 2024
79cf7a5
test: fix check create large group
icey-yu Sep 11, 2024
feda6ec
Merge: main
icey-yu Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require golang.org/x/net v0.22.0 // indirect
require (
github.com/google/go-cmp v0.6.0
github.com/openimsdk/protocol v0.0.72-alpha.12
github.com/openimsdk/tools v0.0.50-alpha.8
github.com/openimsdk/tools v0.0.50-alpha.9
github.com/patrickmn/go-cache v2.1.0+incompatible
golang.org/x/image v0.15.0
golang.org/x/sync v0.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
github.com/openimsdk/protocol v0.0.72-alpha.12 h1:GXUtSFXlh1AeOmMjN1CsRfRZMTQYBWZ8mTuRoB7KxLQ=
github.com/openimsdk/protocol v0.0.72-alpha.12/go.mod h1:OZQA9FR55lseYoN2Ql1XAHYKHJGu7OMNkUbuekrKCM8=
github.com/openimsdk/tools v0.0.50-alpha.8 h1:Cb4IMqN7ULVbPVRHkf4a6t0lEywLhbjCjHc8bbYhFKk=
github.com/openimsdk/tools v0.0.50-alpha.8/go.mod h1:oiSQU5Z6fzjxKFjbqDHImD8EmCIwClU1Rkur1sK12Po=
github.com/openimsdk/tools v0.0.50-alpha.9 h1:oeFFjDdgHyGM+2QUr0j0uiFEiiFtda+rr7lm+0fLmHA=
github.com/openimsdk/tools v0.0.50-alpha.9/go.mod h1:oiSQU5Z6fzjxKFjbqDHImD8EmCIwClU1Rkur1sK12Po=
github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc=
github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
Expand Down
7 changes: 4 additions & 3 deletions integration_test/internal/checker/conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func CheckConvNumAfterImpFriAndCrGro(ctx context.Context) error {
// corrects[0] :super user conversion num
// corrects[1] :common user conversion num
largeNum := vars.LargeGroupNum
commonNum := vars.CommonGroupNum * vars.CommonGroupMemberNum
commonNum := 0 // cal by userNum
groupNum := largeNum + commonNum

superNum := vars.UserNum - 1 + groupNum
Expand All @@ -35,10 +35,11 @@ func CheckConvNumAfterImpFriAndCrGro(ctx context.Context) error {
return totalNum, nil
},
CalCorrectCount: func(userID string) int {
commonGroupNum := calCommonGroup(utils.MustGetUserNum(userID))
if utils.IsSuperUser(userID) {
return corrects[0]
return corrects[0] + commonGroupNum
} else {
return corrects[1]
return corrects[1] + commonGroupNum
}
},
LoopSlice: sdk.TestSDKs,
Expand Down
37 changes: 20 additions & 17 deletions integration_test/internal/checker/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ import (
"fmt"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/config"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/pkg/decorator"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/pkg/progress"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/pkg/reerrgroup"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/pkg/utils"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/sdk"
"github.com/openimsdk/tools/errs"
"github.com/openimsdk/tools/log"
"github.com/openimsdk/tools/utils/stringutil"
"strings"
"sync"
"sync/atomic"
"time"
)

Expand Down Expand Up @@ -58,15 +57,14 @@ func (c *CounterChecker[T, K]) Check(ctx context.Context) error {

var (
gr, cctx = reerrgroup.WithContext(ctx, c.GoroutineLimit)
total atomic.Int64
progress atomic.Int64
total int
now int

checkers = make(map[K]*Counter, len(sdk.TestSDKs))
mapLock = sync.RWMutex{}
)

total.Add(int64(len(c.LoopSlice)))
utils.FuncProgressBarPrint(cctx, gr, &progress, &total)
total = len(c.LoopSlice)
progress.FuncBarPrint(cctx, stringutil.GetFuncName(1), gr, now, total)

for _, t := range c.LoopSlice {
t := t
Expand Down Expand Up @@ -110,14 +108,13 @@ func (c *CounterChecker[T, K]) LoopCheck(ctx context.Context) error {

var (
gr, cctx = reerrgroup.WithContext(ctx, c.GoroutineLimit)
total atomic.Int64
progress atomic.Int64
total int
now int

checkers = make(map[K]*Counter, len(sdk.TestSDKs))
)

total.Add(int64(len(c.LoopSlice)))
utils.FuncProgressBarPrint(cctx, gr, &progress, &total)
total = len(c.LoopSlice)
p := progress.FuncBarPrint(cctx, stringutil.GetFuncName(1), gr, now, total)

for _, t := range c.LoopSlice {
t := t
Expand All @@ -126,24 +123,30 @@ func (c *CounterChecker[T, K]) LoopCheck(ctx context.Context) error {
gr.Go(func() error {
key := c.GetKey(t)
correctNum := c.CalCorrectCount(key)

bar := progress.NewRemoveBar(fmt.Sprintf("%v", key), 0, correctNum)
p.AddBar(bar)

for !isEqual {

totalNum, err := c.GetTotalCount(ctx, t)
if err != nil {
return err
}

p.SetBarNow(bar, totalNum)

isEqual = totalNum == correctNum
if !isEqual {
checkCount++

logStr := fmt.Sprintf("check num:%d, %s un correct. %s: %s,%s: %d, %s: %d",
checkCount, stringutil.CamelCaseToSpaceSeparated(c.checkNumName),
c.CheckerKeyName, key, c.checkNumName, totalNum, "correct num", correctNum)

fmt.Println(logStr)
log.ZWarn(ctx, fmt.Sprintf("check num:%d, %s un correct",
checkCount, stringutil.CamelCaseToSpaceSeparated(c.checkNumName)),
nil, c.CheckerKeyName, key, c.checkNumName, totalNum, "correct num", correctNum)
} else {
log.ZInfo(ctx, fmt.Sprintf("check num:%d, %s correct",
checkCount, stringutil.CamelCaseToSpaceSeparated(c.checkNumName)),
c.CheckerKeyName, key, c.checkNumName, totalNum, "correct num", correctNum)
}
time.Sleep(config.CheckWaitSec * time.Second)
}
Expand Down
21 changes: 18 additions & 3 deletions integration_test/internal/checker/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package checker
import (
"context"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/config"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/pkg/utils"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/sdk"
"github.com/openimsdk/openim-sdk-core/v3/integration_test/internal/vars"
)

func CheckGroupNum(ctx context.Context) error {
correct := func() int {
largeNum := vars.LargeGroupNum
commonNum := vars.CommonGroupNum * vars.CommonGroupMemberNum
commonNum := 0 // cal by userNum
return largeNum + commonNum
}()

Expand All @@ -26,13 +27,27 @@ func CheckGroupNum(ctx context.Context) error {
return groupNum, nil
},
CalCorrectCount: func(userID string) int {
return correct
return correct + calCommonGroup(utils.MustGetUserNum(userID))
},
LoopSlice: sdk.TestSDKs,
GetKey: func(t *sdk.TestSDK) string {
return t.UserID
},
}

return c.Check(ctx)
return c.LoopCheck(ctx)
}

func calCommonGroup(userNum int) int {

preNum := utils.NextOffsetNum(userNum, -(vars.CommonGroupMemberNum - 1))

createNum := 0
for i := 0; i < vars.CommonGroupMemberNum; i++ {
if utils.IsNumLogin(preNum) {
createNum++
}
preNum = utils.NextNum(preNum)
}
return createNum * vars.CommonGroupNum
}
90 changes: 58 additions & 32 deletions integration_test/internal/checker/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,41 @@ import (

// CheckMessageNum check message num.
func CheckMessageNum(ctx context.Context) error {
createdLargeGroupNum := vars.LargeGroupNum / vars.LoginUserNum
corrects := func() [3]int {
// corrects[0]: super user msg num
// corrects[1]: common user msg num
// corrects[2]: create more one large group largest user no + 1

createdLargeGroupNum := vars.LargeGroupNum / vars.UserNum
// if a user num smaller than remainder, it means this user created more one large group
remainder := vars.LargeGroupNum % vars.UserNum
remainder := vars.LargeGroupNum % vars.LoginUserNum

largeGroupNum := ((vars.UserNum-1)*vars.GroupMessageNum+1)*vars.LargeGroupNum - createdLargeGroupNum
// Formula:
// largeGroupNum =
// // total send message num
// vars.GroupMessageNum*vars.UserNum*vars.LargeGroupNum +
// // total create group notification message
// vars.LargeGroupNum -
// // self send group message
// vars.GroupMessageNum*vars.LargeGroupNum -
// // self create group notification message. Complete the calculation based on user ID in CalCorrectCount.
// createdLargeGroupNum
largeGroupNum :=
// total send message num +
vars.GroupMessageNum*vars.LoginUserNum*vars.LargeGroupNum +
// total create group notification message -
vars.LargeGroupNum
// self send group message(cal by userID) -
// self create group notification message. Complete the calculation based on user ID in CalCorrectCount.

commonGroupNum := (vars.GroupMessageNum + 1) * (vars.CommonGroupNum * (vars.CommonGroupMemberNum - 1))
commonGroupNum := 0
// self create group notification message
// Formula:
// commonGroupNum =
// // total send group message
// vars.GroupMessageNum*(vars.CommonGroupMemberNum*vars.CommonGroupNum) +
// // total create group notification message
// (vars.CommonGroupMemberNum * vars.CommonGroupNum) -
// // self send group message
// vars.GroupMessageNum*vars.CommonGroupNum -
// // self create group notification message
// vars.CommonGroupNum
// total send group message(cal by userID) +
// total create group notification message(cal by userID) -
// self send group message(cal by userID) -
// self create group notification message(cal by userID)

groupMsgNum := largeGroupNum + commonGroupNum

superUserMsgNum := (vars.UserNum - 1) * vars.SingleMessageNum // send message + become friend message(in CalCorrectCount)
superUserMsgNum := 0
// Formula:
// superUserMsgNum =
// // friend send message num
// (vars.UserNum-1)*vars.GroupMessageNum +
// // become friend notification message num. it`s number of friends applied for
// userNum
// friend send message num(cal by userID) +
// become friend notification message num(cal by userID)

commonUserMsgNum := vars.SuperUserNum * vars.SingleMessageNum
commonUserMsgNum := min(vars.LoginUserNum, vars.SuperUserNum) * vars.SingleMessageNum

return [3]int{superUserMsgNum + groupMsgNum, commonUserMsgNum + groupMsgNum, remainder}
}()
Expand All @@ -71,13 +62,48 @@ func CheckMessageNum(ctx context.Context) error {
},
CalCorrectCount: func(userID string) int {
var res int
useNum := utils.MustGetUserNum(userID)
userNum := utils.MustGetUserNum(userID)
if utils.IsSuperUser(userID) {
res = corrects[0] + vars.UserNum - 1 - useNum // become friend message
res += corrects[0]
res += vars.UserNum - 1 - userNum // become friend notification message num
if userNum < vars.LoginUserNum {
// friend send message num
res += vars.SingleMessageNum * (vars.LoginUserNum - 1)
// self send large group message
res -= vars.GroupMessageNum * vars.LargeGroupNum
res -= createdLargeGroupNum
} else {
// friend send message num
res += vars.SingleMessageNum * vars.LoginUserNum
// self send large group message
res -= 0
}
} else {
res = corrects[1]
res += corrects[1]
if userNum < vars.LoginUserNum {
// self send large group message
res -= vars.GroupMessageNum * vars.LargeGroupNum
// self created large group num
res -= createdLargeGroupNum
} else {
// self send large group message
res -= 0
}
}

// commonGroupNum =
// total send group message(cal by userID) +
// total create group notification message(cal by userID) -
// self send group message(cal by userID) -
// self create group notification message(cal by userID)
comGroupNum := calCommonGroup(userNum) * (vars.GroupMessageNum + 1)
if utils.IsNumLogin(userNum) {
comGroupNum -= vars.CommonGroupNum * (vars.GroupMessageNum + 1)
}
if useNum < corrects[2] {
res += comGroupNum

// create more one large group
if userNum < corrects[2] {
res--
}
return res
Expand Down
2 changes: 1 addition & 1 deletion integration_test/internal/checker/relation.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func CheckLoginUsersFriends(ctx context.Context) error {
return corrects[1]
}
},
LoopSlice: sdk.TestSDKs,
LoopSlice: sdk.TestSDKs[:vars.LoginUserNum],
GetKey: func(t *sdk.TestSDK) string {
return t.UserID
},
Expand Down
6 changes: 3 additions & 3 deletions integration_test/internal/checker/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (

func CheckLoginByRateNum(ctx context.Context) error {
correct := func() int {
return vars.LoginEndUserNum
return vars.LoginUserNum
}()

c := &CounterChecker[int, string]{
CheckName: "checkLoginByRateNum",
CheckerKeyName: "login",
CheckerKeyName: "loginNum",
GoroutineLimit: config.ErrGroupCommonLimit,
GetTotalCount: func(ctx context.Context, t int) (int, error) {
return int(vars.NowLoginNum.Load()), nil
Expand All @@ -38,7 +38,7 @@ func CheckAllLoginNum(ctx context.Context) error {

c := &CounterChecker[int, string]{
CheckName: "checkLoginByRateNum",
CheckerKeyName: "login",
CheckerKeyName: "loginNum",
GoroutineLimit: config.ErrGroupCommonLimit,
GetTotalCount: func(ctx context.Context, t int) (int, error) {
return int(vars.NowLoginNum.Load()), nil
Expand Down
6 changes: 3 additions & 3 deletions integration_test/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const (
TestIP = "127.0.0.1"
APIAddr = "http://" + TestIP + ":10002"
WsAddr = "ws://" + TestIP + ":10001"
AdminUserID = "imAdmin"
Secret = "openIM123"
PlatformID = constant.WindowsPlatformID
LogLevel = 5
PlatformID = constant.AndroidPlatformID
LogLevel = 3
DataDir = "./data/"
LogFilePath = "./logs/"
AdminUserID = "imAdmin"
IsLogStandardOutput = false
)

Expand Down
18 changes: 11 additions & 7 deletions integration_test/internal/config/limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@ const (
)

const (
ErrGroupSmallLimit = 1 // max goroutine of a small error group
ErrGroupMiddleSmallLimit = 5 // max goroutine of a middle small error group
ErrGroupSmallLimit = 20 // max goroutine of a small error group
ErrGroupMiddleSmallLimit = 50 // max goroutine of a middle small error group
ErrGroupCommonLimit = 100 // max goroutine of a common error group
)

const (
SleepSec = 30
CheckWaitSec = 5 // check wait sec
ProgressWaitSec = 1 // progress bar update wait sec
SleepSec = 30
CheckWaitSec = 5 // check wait sec
BarRemoveWaiteSec = 1 // progress bar remove wait second
)

const (
CheckMsgRate = 0.1 // Sampling and statistical message ratio. Max check message is MaxCheckMsg
MaxCheckMsg = 1e+5
CheckMsgRate = 1 // Sampling and statistical message ratio. Max check message is MaxCheckMsg
MaxCheckMsg = 1e+8
)

const (
ApiParamLength = 1000
)
Loading
Loading