mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-21 09:19:01 +08:00
feat: Integrate Comprehensive E2E Testing for GoChat (#1906)
* feat: create e2e test readme Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> * feat: fix markdown file * feat: add openim make lint * feat: add git chglog pull request * feat: add git chglog pull request * fix: fix openim api err code * fix: fix openim api err code * fix: fix openim api err code * feat: Improve CICD * feat: Combining GitHub and Google Workspace for Effective Project Management' * feat: fix openim tools error code * feat: fix openim tools error code * feat: add openim error handle * feat: add openim error handle * feat: optimize tim white prom code return err * feat: fix openim tools error code * style: format openim server code style * feat: add openim optimize commit code * feat: add openim optimize commit code * feat: add openim auto format code * feat: add openim auto format code * feat: add openim auto format code * feat: add openim auto format code * feat: add openim auto format code * feat: format openim code * feat: Some of the notes were translated * feat: Some of the notes were translated * feat: update openim server code * feat: optimize openim reset code * feat: optimize openim reset code --------- Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
@@ -38,11 +38,20 @@ import (
|
||||
func main() {
|
||||
|
||||
var (
|
||||
topic = "ws2ms_chat" // v2版本配置文件kafka.topic.ws2ms_chat
|
||||
kafkaAddr = "127.0.0.1:9092" // v2版本配置文件kafka.topic.addr
|
||||
rpcAddr = "127.0.0.1:10130" // v3版本配置文件rpcPort.openImMessagePort
|
||||
adminUserID = "openIM123456" // v3版本管理员userID
|
||||
concurrency = 1 // 并发数量
|
||||
// The Kafka topic for ws2ms_chat in version 2 configuration
|
||||
topic = "ws2ms_chat"
|
||||
|
||||
// The Kafka address in version 2 configuration
|
||||
kafkaAddr = "127.0.0.1:9092"
|
||||
|
||||
// The RPC address in version 3 configuration
|
||||
rpcAddr = "127.0.0.1:10130"
|
||||
|
||||
// The administrator userID in version 3
|
||||
adminUserID = "openIM123456"
|
||||
|
||||
// The number of concurrent processes
|
||||
concurrency = 1
|
||||
)
|
||||
|
||||
getRpcConn := func() (*grpc.ClientConn, error) {
|
||||
@@ -99,7 +108,7 @@ func main() {
|
||||
ch := pc.Messages()
|
||||
for {
|
||||
select {
|
||||
case <-time.After(time.Second * 10): // 10s读取不到就关闭
|
||||
case <-time.After(time.Second * 10): // 10s Shuts down when the data cannot be read
|
||||
return
|
||||
case message, ok := <-ch:
|
||||
if !ok {
|
||||
|
||||
@@ -27,21 +27,37 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
var (
|
||||
usernameV2 = "root" // v2版本mysql用户名
|
||||
passwordV2 = "openIM" // v2版本mysql密码
|
||||
addrV2 = "127.0.0.1:13306" // v2版本mysql地址
|
||||
databaseV2 = "openIM_v2" // v2版本mysql数据库名字
|
||||
// MySQL username for version 2
|
||||
usernameV2 = "root"
|
||||
|
||||
// MySQL password for version 2
|
||||
passwordV2 = "openIM"
|
||||
|
||||
// MySQL address for version 2
|
||||
addrV2 = "127.0.0.1:13306"
|
||||
|
||||
// MySQL database name for version 2
|
||||
databaseV2 = "openIM_v2"
|
||||
)
|
||||
|
||||
var (
|
||||
usernameV3 = "root" // v3版本mysql用户名
|
||||
passwordV3 = "openIM123" // v3版本mysql密码
|
||||
addrV3 = "127.0.0.1:13306" // v3版本mysql地址
|
||||
databaseV3 = "openim_v3" // v3版本mysql数据库名字
|
||||
// MySQL username for version 3
|
||||
usernameV3 = "root"
|
||||
|
||||
// MySQL password for version 3
|
||||
passwordV3 = "openIM123"
|
||||
|
||||
// MySQL address for version 3
|
||||
addrV3 = "127.0.0.1:13306"
|
||||
|
||||
// MySQL database name for version 3
|
||||
databaseV3 = "openim_v3"
|
||||
)
|
||||
|
||||
var concurrency = 1 // 并发数量
|
||||
// The number of concurrent processes
|
||||
var concurrency = 1
|
||||
|
||||
log.SetFlags(log.LstdFlags | log.Llongfile)
|
||||
dsnV2 := fmt.Sprintf("%s:%s@tcp(%s)/%s?charset=utf8mb4&parseTime=True&loc=Local", usernameV2, passwordV2, addrV2, databaseV2)
|
||||
|
||||
Reference in New Issue
Block a user