fix: address code review issues and cleanup QA reports
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Code review fixes: - Add error logging to LlmProviderAdminController.testProvider catch block - Use atomic increment operations in TokenBudgetService.updateUsage to prevent race conditions - Update test expectations for atomic increment pattern Cleanup: - Remove obsolete QA automation reports All 1169 tests passing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -112,9 +112,9 @@ describe("TokenBudgetService", () => {
|
||||
expect(mockPrismaService.tokenBudget.update).toHaveBeenCalledWith({
|
||||
where: { taskId: mockTaskId },
|
||||
data: {
|
||||
inputTokensUsed: 60000,
|
||||
outputTokensUsed: 40000,
|
||||
totalTokensUsed: 100000,
|
||||
inputTokensUsed: { increment: 10000 },
|
||||
outputTokensUsed: { increment: 10000 },
|
||||
totalTokensUsed: { increment: 20000 },
|
||||
budgetUtilization: expect.closeTo(0.667, 2),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user