Skip to content

Commit 5a6b0d6

Browse files
committed
Fixed some buggy tests in TransactionSchedulerService.
Signed-off-by: Eric Le Ponner <eric.leponner@icloud.com>
1 parent 52de078 commit 5a6b0d6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

back-end/apps/chain/src/transaction-scheduler/transaction-scheduler.service.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,12 @@ describe('TransactionStatusService', () => {
481481
} as Transaction,
482482
];
483483

484+
transactionGroupRepo.findOne.mockResolvedValueOnce(
485+
transactionGroups[0].groupItem!.group as TransactionGroup,
486+
);
487+
transactionGroupRepo.findOne.mockResolvedValueOnce(
488+
transactionGroups[2].groupItem!.group as TransactionGroup,
489+
);
484490
jest.spyOn(service, 'collateGroupAndExecute').mockImplementation(jest.fn());
485491
jest.spyOn(service, 'isValidStartExecutable').mockImplementation(() => true);
486492

@@ -547,6 +553,12 @@ describe('TransactionStatusService', () => {
547553
} as Transaction,
548554
];
549555

556+
transactionGroupRepo.findOne.mockResolvedValueOnce(
557+
transactionGroups[0].groupItem!.group as TransactionGroup,
558+
);
559+
transactionGroupRepo.findOne.mockResolvedValueOnce(
560+
transactionGroups[1].groupItem!.group as TransactionGroup,
561+
);
550562
jest.spyOn(service, 'collateGroupAndExecute').mockImplementation(jest.fn());
551563
jest.spyOn(service, 'isValidStartExecutable').mockImplementation(() => true);
552564

0 commit comments

Comments
 (0)