Improved error handling.
This commit is contained in:
parent
b566a36797
commit
c65786b7df
2 changed files with 4 additions and 1 deletions
|
@ -46,6 +46,9 @@ class ActiveSupport::TestCase
|
||||||
|
|
||||||
# check if jobs are proccessed
|
# check if jobs are proccessed
|
||||||
if !Delayed::Job.all.empty?
|
if !Delayed::Job.all.empty?
|
||||||
|
Delayed::Job.where('failed_at != NULL').each {|job|
|
||||||
|
assert( false, "not processable job #{jobs.inspect}" )
|
||||||
|
}
|
||||||
Delayed::Job.all.destroy_all
|
Delayed::Job.all.destroy_all
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -155,7 +155,7 @@ class SessionEnhancedTest < ActiveSupport::TestCase
|
||||||
assert( Sessions.thread_client_exists?(client_id3), 'check if client is running' )
|
assert( Sessions.thread_client_exists?(client_id3), 'check if client is running' )
|
||||||
|
|
||||||
# check if session still exists after idle cleanup
|
# check if session still exists after idle cleanup
|
||||||
sleep 6
|
sleep 8
|
||||||
client_ids = Sessions.destory_idle_sessions(5)
|
client_ids = Sessions.destory_idle_sessions(5)
|
||||||
|
|
||||||
# check client sessions
|
# check client sessions
|
||||||
|
|
Loading…
Reference in a new issue