Menu

#18 test/Container.py: unittest fails

closed-fixed
nobody
cache (3)
1
2005-10-30
2005-10-27
No

In test/Container.py, ContainerTest.testDbmContainer2
fails for me.

Details of failure are:

testDbmContainer2 (__main__.ContainerTest) ...
testing myghty.container.DBMContainer for 10 secs
with expiretime 2
delay 0
create thread 1 starting
create thread 2 starting
[...]
create thread 3 exiting
total object creates 2
total object gets 6788
FAIL

(Translation: The test script expects (approximately)
five object creates, but it only sees two.)

This is in the latest CVS version of test/Container.py
(file revision 1.13). The version from release 0.99
also fails, but in that case it is
ContainerTest.testcontainer which fails.

Discussion

  • Geoffrey T. Dairiki

    • priority: 5 --> 1
    • assigned_to: zzzeek --> nobody
     
  • Mike Bayer

    Mike Bayer - 2005-10-28

    Logged In: YES
    user_id=1100624

    try bringing the total number of threads from 20 down to 10,
    it might just be that your machine is letting the threads
    pile up on top of each other in some way.

    i attached a patch to bring it down to 10 and also the
    "__main__" line at the bottom is fixed so command line
    testargumentws are obeyed.

     
  • Mike Bayer

    Mike Bayer - 2005-10-28

    patch to change 20 threads to 10

     
  • Geoffrey T. Dairiki

    Logged In: YES
    user_id=45814

    Thanks Mike. That (reducing the number of threads to 10)
    fixed it.

     
  • Mike Bayer

    Mike Bayer - 2005-10-30
    • status: open --> closed-fixed
     
Auth0 Logo