You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of using AssertionScope with the CompleteWithinAsync method over the delegate that returns a task with a result (Task<T>), the method will wait until the task is completed.
Hey @xzxzxc , sorry for strong delay!
Today I finally tried to reproduce. I guess, it was already fixed while refactoring in #1967.
Please check again with version 6.8.0. At least I cannot reproduce anymore.
Description
In the case of using
AssertionScope
with theCompleteWithinAsync
method over the delegate that returns a task with a result (Task<T>
), the method will wait until the task is completed.Complete minimal example reproducing the issue
Expected behavior:
The
CompleteWithinAsync
method will throw an exception in a decent period of time.Actual behavior:
Execution stucks in the infinite loop.
Versions
I'm using FluentAssertions 6.7.0 with net6.0.
Additional Information
Issue disappears with one of the following changes:
AssertionScope
;return
statement from thesomeAsyncWork
(change the type of the delegate fromFunc<Task<T>>
toFunc<Task>
).The text was updated successfully, but these errors were encountered: