Skip to content

Commit

Permalink
chore: fix unit test verifying disposal behavior in .NET Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
nozzlegear committed Jan 18, 2025
1 parent ba4d653 commit dae3ece
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ShopifySharp.Tests/Services/ShopifyServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public async Task Internal_ExecuteRequestCoreAsync_WhenRunningTheExecutionPolicy

callToPolicy.MustHaveHappenedOnceExactly();
callToHandler.MustHaveHappenedOnceExactly();
callToDisposeContent.MustHaveHappenedOnceExactly();
// Dispose may be called more than once depending on the framework (DNF, .Net, Mono, etc.)
callToDisposeContent.MustHaveHappenedOnceOrMore();
}

#endregion
Expand Down

0 comments on commit dae3ece

Please sign in to comment.