Show More
Commit Description:
- after submission, redirecto to edit_submission_path...
Commit Description:
- after submission, redirecto to edit_submission_path - add more info to submission status - fix bug #20 and #21
References:
File last commit:
Show/Diff file:
Action:
test/concurrent/task_test_get.rb | 16 lines | 310 B | text/x-ruby | RubyLexer |
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../../config/environment")
def take_wait_return
task = Task.get_inqueue_and_change_status(Task::STATUS_GRADING)
sleep (rand)/10.0
task.status_complete
task.save!
end
n = 300
n.times do |i|
take_wait_return
puts i
end