-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing methods that contain timers #79
Comments
You could always just set the timer to 0. |
Does your timer just call a specific function. I just had my test call that function directly |
The problem with setting the timer to 0 is that it is in a real agent so it would screw up the actual running of it. My timer sends a message that uses a parameter that is passed into the function so I guess I can just create a function for it to call to send the message. I just thought there might be a special way to get around it with testing. |
Well there are a few ways to do this. There are probably a few other ways, likely a few better ways, but what I've suggested will probably be good enough for our purposes. |
Im experiencing a problem when testing a method that employs a timer task. WHen I run the test it gets into the method but it wont execute the action that is called when the timer expires. How do we get around this?
The text was updated successfully, but these errors were encountered: