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
Work around issue with ToArray during SpinUntil (#102)
In `TestQueue.WaitFor()`, the use of the `HandledTypes` property was causing problems. That property converts from `HashSet<Type>` to `Array<Type>` using `ToArray()`. The conversion occasionally throws an ArgumentException, saying "Destination array is not long enough to copy all the items in the collection. Check array index and length." This error in turn causes unit tests that use `WaitFor` to occasionally fail. Because the exception is thrown from a core .NET library, we need to work around it, which we do by using the `_handledTypes` `HashSet` directly in `WaitFor()`.
0 commit comments