Menu

#8 System Test Do not interrupt

Pushback
open
nobody
None
5
2002-11-11
2002-06-30
Matt Paulin
No

Create a system test with a nice long loop
Do not use sleep to pull this off
Run the test and hit the stop button. That should interrupt the test.
But, it doesn't. It seems that only the sleep() method will get the interrupt exception thrown.

What we need is a way to get the test to interrupt so that a test in an infinite loop can be shut down.

All the functionality works, we just need a java trick to pull it off.

Discussion

  • Matt Paulin

    Matt Paulin - 2002-07-02

    Logged In: YES
    user_id=318102

    Turns out that threads don't act the way I thought. I assumed they would break out of the code currently running.
    THey don't. Some sort of architecture needs to be added to help in writing the test.

     
  • Matt Paulin

    Matt Paulin - 2002-11-11
    • milestone: --> 254238
     
  • Matt Paulin

    Matt Paulin - 2002-11-11
    • milestone: 254238 --> Pushback
     

Log in to post a comment.

MongoDB Logo MongoDB