Skip to content

Update content length assertion in test

995f94b
Select commit
Loading
Failed to load commit list.
Open

[release/8.0] Fix ResponseCompressionMiddleware tests #60884

Update content length assertion in test
995f94b
Select commit
Loading
Failed to load commit list.
Azure Pipelines / aspnetcore-quarantined-pr (Tests: Ubuntu x64) failed Mar 12, 2025 in 12m 39s

Tests: Ubuntu x64 failed

Annotations

Check failure on line 9 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-quarantined-pr (Tests: Ubuntu x64)

Build log #L9

Publishing build artifacts failed with an error: Not found PathtoPublish: /mnt/vss/_work/1/s/artifacts/TestResults/

Check failure on line 1328 in src/Middleware/ResponseCompression/test/ResponseCompressionMiddlewareTest.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-quarantined-pr (Tests: Ubuntu x64)

src/Middleware/ResponseCompression/test/ResponseCompressionMiddlewareTest.cs#L1328

src/Middleware/ResponseCompression/test/ResponseCompressionMiddlewareTest.cs(1328,16): error CS0313: (NETCORE_ENGINEERING_TELEMETRY=Build) The type 'long?' cannot be used as type parameter 'T' in the generic type or method 'Assert.InRange<T>(T, T, T)'. The nullable type 'long?' does not satisfy the constraint of 'System.IComparable'. Nullable types can not satisfy any interface constraints.