style(qq): fix CI formatting in split PR3

This commit is contained in:
Sakurapainting 2026-04-02 09:30:28 +08:00
parent bbbd4a9791
commit 72e50057c1
2 changed files with 17 additions and 13 deletions

View file

@ -35,12 +35,12 @@ import (
)
const (
dedupTTL = 5 * time.Minute
dedupInterval = 60 * time.Second
dedupMaxSize = 10000 // hard cap on dedup map entries
typingResend = 8 * time.Second
typingSeconds = 10
bytesPerMiB = 1024 * 1024
dedupTTL = 5 * time.Minute
dedupInterval = 60 * time.Second
dedupMaxSize = 10000 // hard cap on dedup map entries
typingResend = 8 * time.Second
typingSeconds = 10
bytesPerMiB = 1024 * 1024
qqStartupProbe = 15 * time.Second
)

View file

@ -141,7 +141,9 @@ func TestHandleGroupATMessage_PrefersGroupOpenIDFromRawPayload(t *testing.T) {
ctx: context.Background(),
}
raw := []byte(`{"d":{"group_openid":"group-openid-abc","author":{"id":"legacy-member-id","member_openid":"member-openid-xyz"}}}`)
raw := []byte(
`{"d":{"group_openid":"group-openid-abc","author":{"id":"legacy-member-id","member_openid":"member-openid-xyz"}}}`,
)
err := ch.handleGroupATMessage()(&dto.WSPayload{RawMessage: raw}, &dto.WSGroupATMessageData{
ID: "group-openid-msg",
GroupID: "legacy-group-id",
@ -175,7 +177,9 @@ func TestHandleGroupATMessage_AllowListFallsBackToLegacyMemberID(t *testing.T) {
ctx: context.Background(),
}
raw := []byte(`{"d":{"group_openid":"group-openid-abc","author":{"id":"legacy-member-id","member_openid":"member-openid-xyz"}}}`)
raw := []byte(
`{"d":{"group_openid":"group-openid-abc","author":{"id":"legacy-member-id","member_openid":"member-openid-xyz"}}}`,
)
err := ch.handleGroupATMessage()(&dto.WSPayload{RawMessage: raw}, &dto.WSGroupATMessageData{
ID: "group-allow-fallback",
GroupID: "legacy-group-id",
@ -208,11 +212,11 @@ func TestHandleGroupATMessage_AllowListFallsBackToLegacyMemberID(t *testing.T) {
func TestParseQQOpenIDs(t *testing.T) {
tests := []struct {
name string
raw []byte
wantUser string
wantMember string
wantGroup string
name string
raw []byte
wantUser string
wantMember string
wantGroup string
}{
{
name: "empty",