search for: ph7spot

Displaying 2 results from an estimated 2 matches for "ph7spot".

Did you mean: mhspot
2009 Sep 04
0
Mongrel Timeout for System Calls
...dn''t appear to do anything as the process still took 120-130 seconds to complete. After digging around a bit, I discovered this writeup about timeout and system calls (http://adamblog.heroku.com/past/2008/6/17/battling_wedged_mongrels_with_a/). I immediately installed SystemTimer (http://ph7spot.com/articles/system_timer) and tried again: begin require ''system_timer'' MyTimer = SystemTimer rescue LoadError require ''timeout'' MyTimer = Timeout end def invoke(rfc) MyTimer.timeout_after(20.seconds) do rfc.invoke end rescue Timeout:...
2009 Jul 08
7
running a unit test over and over in script/console
I started doing this: $ RAILS_ENV=test script/console >> load ''test/unit/models/example_test.rb''; r = Test::Unit::TestResult.new; reload!; ExampleTest.new(:test_example1).run(r) { |c,v| }; pp results and then just hit up arrow and run that same line again over and over in script/console. That way I can make changes to the test and app code, and don''t have to