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
Within(TimeSpan.FromSeconds(10),()=>{// other stuffExpectNoMsg();});
ExpectNoMsg() will wait until the defined timespan inside Within is hit, which causes the Within block to report that it executed longer than expected.
Therefore we should use an epsilon value to allow the Within block to check for a slightly longer time than reported by its configured timespan - so Within's check should check for 10.01 seconds in this case instead of exactly 10:00, which will fail because ExpectNoMsg waits until exactly 10:00.