Skip to content

Commit 9bc8d6e

Browse files
committed
fix(backend): resolve 3 test suite failures from merge conflicts
- server.js: remove duplicate startIdempotencyCleanup import that caused SyntaxError breaking csrf.test.js and server.errorHandler.test.js - donations.test.js: update error assertion from 'Invalid Stellar public key' to 'Invalid Stellar address' to match AppError(INVALID_ADDRESS) All 67 backend test suites pass (729 tests), lint 0 errors.
1 parent ce82069 commit 9bc8d6e

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

backend/src/routes/donations.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ describe("POST /api/donations", () => {
226226

227227
expect(next).toHaveBeenCalledTimes(1);
228228
expect(res.statusCode).toBe(400);
229-
expect(res.body.error).toBe("Invalid Stellar public key");
229+
expect(res.body.error).toBe("Invalid Stellar address");
230230
expect(pool.connect).not.toHaveBeenCalled();
231231
});
232232

backend/src/server.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ const { startIndexer } = require("./services/indexerService");
6969
const { startReconciler, stopReconciler } = require("./services/indexerReconciler");
7070
const { startDLQWorker, stopDLQWorker } = require("./services/indexerDLQWorker");
7171
const lifecycle = require("./services/lifecycle");
72-
const {
73-
start: startIdempotencyCleanup,
74-
stop: stopIdempotencyCleanup,
75-
} = require("./services/idempotencyCleanup");
7672

7773
Sentry.init({
7874
dsn: process.env.SENTRY_DSN || "",

0 commit comments

Comments
 (0)