Sha256: 5fb06035cf0d2b2cd8dff7658d955b8be8102997c873c40d154c80d3d5239c3e
Contents?: true
Size: 684 Bytes
Versions: 1
Compression:
Stored size: 684 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' class SkynetTaskTest < Test::Unit::TestCase def setup Skynet.configure( :ENABLE => false, :SKYNET_LOG_FILE => STDOUT, :SKYNET_LOG_LEVEL => Logger::ERROR ) end def test_master_task job = Skynet::Job.new(:map_reduce_class => self.class, :async => true) master_task = Skynet::Task.master_task(job) master_job = Skynet::Job.new(master_task.process) assert_equal self.class.to_s, master_job.map assert ! master_job.async assert_equal true, master_job.local_master end def self.map(datas) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skynet-0.9.2 | test/test_skynet_task.rb |