Re: [galaxy-dev] Error in my functional test
Hi Nate, I tried to run the tool with a small input file. Then that case also the test fails and returns the same error message. FAIL: mGenePredict ( mgenepredict ) > Test-1 ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/galaxy/galaxy-2.1.2009/test/functional/test_toolbox.py", line 114, in test_tool self.do_it() File "/home/galaxy/galaxy-2.1.2009/test/functional/test_toolbox.py", line 54, in do_it self.verify_dataset_correctness( file ) File "/home/galaxy/galaxy-2.1.2009/test/base/twilltestcase.py", line 323, in verify_dataset_correctness if wait: self.wait() #wait for job to finish File "/home/galaxy/galaxy-2.1.2009/test/base/twilltestcase.py", line 617, in wait self.assertNotEqual(count, maxiter) AssertionError: 20 == 20 Also I can find that the job is not finished even though I got the fail message. I confirmed the same, when I run the test again it produces an error message stating that the Galaxy port is already in use. I hope my assumption is true, if not please let me know. Many thanks, Vipin T S
Vipin TS wrote:
I tried to run the tool with a small input file. Then that case also the test fails and returns the same error message.
FAIL: mGenePredict ( mgenepredict ) > Test-1 ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/galaxy/galaxy-2.1.2009/test/functional/test_toolbox.py", line 114, in test_tool self.do_it() File "/home/galaxy/galaxy-2.1.2009/test/functional/test_toolbox.py", line 54, in do_it self.verify_dataset_correctness( file ) File "/home/galaxy/galaxy-2.1.2009/test/base/twilltestcase.py", line 323, in verify_dataset_correctness if wait: self.wait() #wait for job to finish File "/home/galaxy/galaxy-2.1.2009/test/base/twilltestcase.py", line 617, in wait self.assertNotEqual(count, maxiter) AssertionError: 20 == 20
Also I can find that the job is not finished even though I got the fail message. I confirmed the same, when I run the test again it produces an error message stating that the Galaxy port is already in use.
I hope my assumption is true, if not please let me know.
Hi Vipin, You are correct - the job is not finishing before the test framework gives up. By default the test framework will wait for three and a half minutes before giving up, so you may want to determine if your test can shortened further. --nate
Hi Nate, Thanks for your comment. Well, it is very hard to reduce the run time. I was wondering whether you can suggest a way to extend the waiting time for the test frame work, from the default time three and half minutes. Thanks, Vipin T S
Vipin TS wrote:
Thanks for your comment. Well, it is very hard to reduce the run time. I was wondering whether you can suggest a way to extend the waiting time for the test frame work, from the default time three and half minutes.
You'll need to increase the value of maxiter in the wait fuction in test/base/twilltestcase.py, line 835: def wait( self, maxiter=20 ): Every iteration increases the wait by 1 second. --nate
participants (2)
-
Nate Coraor
-
Vipin TS