Skip to content

Commit 794fccd

Browse files
author
Max Gruenfelder
committed
wip
1 parent f56310e commit 794fccd

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/outbox/EventQueueGenericOutboxHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ class EventQueueGenericOutboxHandler extends EventQueueBaseClass {
388388
tx._eventQueue.events = [];
389389
}
390390

391-
for (const [id, result] of statusTuple) {
391+
for (const [, result] of statusTuple) {
392392
if (succeeded && result.status === EventProcessingStatus.Done) {
393393
(await this.__srv.tx(processContext)).send(succeeded, result.nextData ?? req.data);
394394
}

test/eventQueueOutbox.test.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,19 +2514,19 @@ describe("event-queue outbox", () => {
25142514
expect(loggerMock.callsLengths().error).toEqual(0);
25152515
});
25162516

2517-
it.skip("how to deal with specific event configuration srv.actionName", async () => {
2518-
const service = await cds.connect.to("Saga");
2519-
await service.send("saga");
2520-
await commitAndOpenNew();
2521-
await processEventQueue(tx.context, "CAP_OUTBOX", service.name);
2522-
const [done, next] = await testHelper.selectEventQueueAndReturn(tx, {
2523-
expectedLength: 2,
2524-
additionalColumns: ["payload", "status"],
2525-
});
2526-
expect(JSON.parse(done.payload)).toMatchObject({});
2527-
expect(JSON.parse(done.payload)).toMatchObject({});
2528-
expect(loggerMock.callsLengths().error).toEqual(0);
2529-
});
2517+
// it.skip("how to deal with specific event configuration srv.actionName", async () => {
2518+
// const service = await cds.connect.to("Saga");
2519+
// await service.send("saga");
2520+
// await commitAndOpenNew();
2521+
// await processEventQueue(tx.context, "CAP_OUTBOX", service.name);
2522+
// const [done, next] = await testHelper.selectEventQueueAndReturn(tx, {
2523+
// expectedLength: 2,
2524+
// additionalColumns: ["payload", "status"],
2525+
// });
2526+
// expect(JSON.parse(done.payload)).toMatchObject({});
2527+
// expect(JSON.parse(done.payload)).toMatchObject({});
2528+
// expect(loggerMock.callsLengths().error).toEqual(0);
2529+
// });
25302530
});
25312531

25322532
describe("provide next data", () => {

0 commit comments

Comments
 (0)