Skip to content

v2.3.1 - Test Infrastructure Fixes

Latest

Choose a tag to compare

@ANcpLua ANcpLua released this 01 Dec 00:44
· 1 commit to main since this release

Test Infrastructure Fixes

SSE Test Hanging Issue Resolved

All SSE tests now use proper stream completion patterns, reducing test suite runtime from 11+ minutes to ~50 seconds.

Changes

  • Refactored all SSE tests to use FakeCompletableSseStream with .Complete()
  • Added .AsTask().WaitAsync() pattern for read operations with timeouts
  • Fixed tests that were hanging due to never-ending SSE streams

Files Updated

File Pattern Applied
SseExtensionsTests.cs FakeCompletableSseStream + .Complete() + .AsTask().WaitAsync()
SseExtensionsFallbackTests.cs FakeCompletableSseStream + .Complete()
SseExtensionsNet10Tests.cs FakeCompletableSseStream + .Complete()
GenAIEventStreamIntegrationTests.cs FakeCompletableSseStream + .Complete() + .AsTask().WaitAsync()
OcrEventStreamIntegrationTests.cs FakeCompletableSseStream + .Complete() + .AsTask().WaitAsync()

Test Results

Framework Tests Duration
net8.0 76 ✅ 30s
net9.0 101 ✅ 45s
net10.0 103 ✅ 49s

Breaking Changes

None - test infrastructure only.