fix(ci): add missing signaturePool arg + gofmt alignment

This commit is contained in:
erio
2026-04-19 19:28:10 +08:00
parent a4209ab4f8
commit c1d95da06a
3 changed files with 5 additions and 4 deletions
@@ -169,6 +169,7 @@ func newTestGatewayHandler(t *testing.T, group *service.Group, accounts []*servi
nil, // channelService
nil, // resolver
nil, // balanceNotifyService
nil, // signaturePool
)
// RunModeSimple:跳过计费检查,避免引入 repo/cache 依赖。
@@ -75,8 +75,8 @@ type harvestReader struct {
skip func() bool
stream bool
lineBuf []byte // SSE line accumulator
bodyBuf []byte // non-streaming body accumulator (bounded)
lineBuf []byte // SSE line accumulator
bodyBuf []byte // non-streaming body accumulator (bounded)
seen map[string]struct{} // de-dupe within a single response
closed bool
}
@@ -122,8 +122,8 @@ func TestShouldClearStickySession(t *testing.T) {
{
name: "overloaded account",
account: &Account{
Status: StatusActive,
Schedulable: true,
Status: StatusActive,
Schedulable: true,
OverloadUntil: &future,
},
requestedModel: "",