Skip to content

Fix race condition in EventConsumerProcessor.CompleteAsync causing flaky test#1306

Merged
SebastianStehle merged 2 commits into
masterfrom
copilot/fix-event-consumer-processor-test
Apr 8, 2026
Merged

Fix race condition in EventConsumerProcessor.CompleteAsync causing flaky test#1306
SebastianStehle merged 2 commits into
masterfrom
copilot/fix-event-consumer-processor-test

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

  • Identify the "weird" code: an empty using (await asyncLock.EnterAsync()) {} block used as a synchronization fence
  • Replace with idiomatic using var _ = await asyncLock.EnterAsync(); — same semantics, no empty body

Agent-Logs-Url: https://github.com/Squidex/squidex/sessions/b55e1925-e661-469b-99cb-bcf3c6ff5cfd

Co-authored-by: SebastianStehle <1236435+SebastianStehle@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Squidex/squidex/sessions/6bb99aa7-f129-4ec3-939b-43b41cb22b31

Co-authored-by: SebastianStehle <1236435+SebastianStehle@users.noreply.github.com>
@SebastianStehle SebastianStehle marked this pull request as ready for review April 8, 2026 07:14
@SebastianStehle SebastianStehle merged commit 2d2017b into master Apr 8, 2026
9 checks passed
@SebastianStehle SebastianStehle deleted the copilot/fix-event-consumer-processor-test branch April 8, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants