fix(mtproto): sync accept TDLib reconnect service parity

This commit is contained in:
iamxvbaba 2026-08-02 01:51:03 +08:00
parent c854fc7b94
commit c13fbf8885
9 changed files with 176 additions and 41 deletions

View file

@ -28,7 +28,7 @@ func TestRegisterSeedsNegotiatedLayerBeforeFirstRPC(t *testing.T) {
conn, auth, cipher := dialHandshake(t, addr, 2, pub)
clientMsgID := proto.NewMessageIDGen(time.Now)
sendEncrypted(t, conn, cipher, auth, clientMsgID.New(proto.MessageFromClient), &mt.PingRequest{PingID: 7})
sendEncryptedWithSeq(t, conn, cipher, auth, clientMsgID.New(proto.MessageFromClient), 1, &mt.PingRequest{PingID: 7})
// 等 pong 回来,确保携带注册动作的那一帧已处理完成。
gotPong := false