mirror of
https://gitee.com/wanwujie/sub2api
synced 2026-04-28 02:14:48 +08:00
Fix ops write pressure integration fixture
This commit is contained in:
@@ -22,6 +22,7 @@ func TestOpsRepositoryBatchInsertErrorLogs(t *testing.T) {
|
|||||||
RequestID: "batch-ops-1",
|
RequestID: "batch-ops-1",
|
||||||
ErrorPhase: "upstream",
|
ErrorPhase: "upstream",
|
||||||
ErrorType: "upstream_error",
|
ErrorType: "upstream_error",
|
||||||
|
Severity: "error",
|
||||||
StatusCode: 429,
|
StatusCode: 429,
|
||||||
ErrorMessage: "rate limited",
|
ErrorMessage: "rate limited",
|
||||||
CreatedAt: now,
|
CreatedAt: now,
|
||||||
@@ -30,6 +31,7 @@ func TestOpsRepositoryBatchInsertErrorLogs(t *testing.T) {
|
|||||||
RequestID: "batch-ops-2",
|
RequestID: "batch-ops-2",
|
||||||
ErrorPhase: "internal",
|
ErrorPhase: "internal",
|
||||||
ErrorType: "api_error",
|
ErrorType: "api_error",
|
||||||
|
Severity: "error",
|
||||||
StatusCode: 500,
|
StatusCode: 500,
|
||||||
ErrorMessage: "internal error",
|
ErrorMessage: "internal error",
|
||||||
CreatedAt: now.Add(time.Millisecond),
|
CreatedAt: now.Add(time.Millisecond),
|
||||||
|
|||||||
Reference in New Issue
Block a user