Sha256: fb096bcca1b350d5ef3075760fb6392180038890a6dbb2b18fa0fbc78c824d58

Contents?: true

Size: 723 Bytes

Versions: 12

Compression:

Stored size: 723 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, :local_master => false, :solo => 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

12 entries across 12 versions & 3 rubygems

Version Path
brendan-skynet-0.9.3.1 test/test_skynet_task.rb
brendan-skynet-0.9.3.2 test/test_skynet_task.rb
brendan-skynet-0.9.3.3 test/test_skynet_task.rb
brendan-skynet-0.9.3.5 test/test_skynet_task.rb
brendan-skynet-0.9.3.6 test/test_skynet_task.rb
brendan-skynet-0.9.3.7 test/test_skynet_task.rb
brendan-skynet-0.9.3.8 test/test_skynet_task.rb
brendan-skynet-0.9.31 test/test_skynet_task.rb
brendan-skynet-0.9.32 test/test_skynet_task.rb
brendan-skynet-0.9.33 test/test_skynet_task.rb
timocratic-skynet-0.9.4 test/test_skynet_task.rb
skynet-0.9.3 test/test_skynet_task.rb