Skip to content

[release/8.0] Fix ResponseCompressionMiddleware tests #60884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: release/8.0
Choose a base branch
from

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-ci failed Mar 12, 2025 in 34m 56s

Build #20250311.40 failed

Details

Tests

  • Failed: 0 (0.00%)
  • Passed: 2,271 (98.06%)
  • Other: 45 (1.94%)
  • Total: 2,316

Annotations

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

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-ci

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.

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

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-ci

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.

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

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-ci

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.

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

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-ci

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.