Skip to content

Fix xUnit1031: use async/await in LifecycleJournalCaptureTests - #26

Merged
Zaknin merged 1 commit into
mainfrom
codex/phase-34a3-xunit1031-fix
Jul 28, 2026
Merged

Zaknin merged 1 commit into
mainfrom
codex/phase-34a3-xunit1031-fix

Conversation

@Zaknin

@Zaknin Zaknin commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Phase 34A.3 — xUnit1031 fix for LifecycleJournalCaptureTests

Changes

  • ManifestIsPhysicallyWrittenAfterSnapshotMetadataIsComplete: void → async Task
  • captureFinished.Task.Wait() → await captureFinished.Task.WaitAsync()

Synchronously awaiting a Task inside a non-async xUnit test method triggers xUnit1031. Switching to proper async test signature and WaitAsync resolves the warning.

Files changed

  • PimaxVrcSupervisor.Tests/LifecycleJournalCaptureTests.cs (+2/-2)

ManifestIsPhysicallyWrittenAfterSnapshotMetadataIsComplete:
- void -> async Task
- captureFinished.Task.Wait() -> await captureFinished.Task.WaitAsync()

Synchronously awaiting a Task inside a non-async xUnit test method
triggers xUnit1031 (NoBooleanPredicate). Switching to proper async
test signature and WaitAsync resolves the warning.
@Zaknin
Zaknin merged commit 54d9ca3 into main Jul 28, 2026
1 check failed
@Zaknin
Zaknin deleted the codex/phase-34a3-xunit1031-fix branch August 19, 2026 18:10
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.

1 participant