p-org / PSharp

A framework for rapid development of reliable asynchronous software.
MIT License
390 stars 37 forks source link

fixed a bug in timers and added unit test #422

Closed pdeligia closed 5 years ago

pdeligia commented 5 years ago

Fixed a bug where explicitly halting a machine, while it has active timers would throw an exception, as it was trying to halt all active timers, which would end up modifying the collection while removing them. Added a new unit test to catch this case.

Also removed a nondeterministic test from the old deprecated timer API.