mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
fix(ci): add missing signaturePool arg + gofmt alignment
This commit is contained in:
@@ -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: "",
|
||||
|
||||
Reference in New Issue
Block a user