leancodepl / leancodepl/corelibrary
Better waiting for MassTransit outbox in tests
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 30
- Forks
- 4
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 3
Description
Currently (#507) we resort to plain Task.Delay which might: a) increase tests time unnecessarily b) not always be enough.
Mass Transit does not allow us to watch when outbox was delivered. We can think of writing our custom IBusOutboxNotification which would notify us when outbox cycle was completed.
This is just the idea, details will need to polished.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing issue #507 and the tests that currently use plain Task.Delay, then inspect MassTransit's IBusOutboxNotification extension point. Document how tests can observe outbox-cycle completion and define done as replacing unreliable fixed delays with a completion-based wait and coverage for the waiting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend, testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100