leancodepl / leancodepl/corelibrary

Better waiting for MassTransit outbox in tests

Open
#513 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-masstransit
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.