diff --git a/bindings/dotnet/OpenDAL.Tests/Behavior/WriteBehaviorTest.cs b/bindings/dotnet/OpenDAL.Tests/Behavior/WriteBehaviorTest.cs index 9c1804538f92..719b4549c25c 100644 --- a/bindings/dotnet/OpenDAL.Tests/Behavior/WriteBehaviorTest.cs +++ b/bindings/dotnet/OpenDAL.Tests/Behavior/WriteBehaviorTest.cs @@ -444,7 +444,9 @@ public async Task WriteBehavior_IfNotChanged_RejectsStaleMetadataAsync() [Fact] public async Task WriteBehavior_OptionsLargerThanStackBuffer_RoundTripAsync() { - if (!Supports(c => c.Write && c.Stat && c.WriteWithContentType)) + // This exercises the binding, not the service, and real services cap + // the content type length (B2 answers 415), so only memory runs it. + if (!IsService("memory") || !Supports(c => c.Write && c.Stat && c.WriteWithContentType)) { return; }