Sha256: d87c55bd03ea6bd436272665acd8540bc2b9263fb8d4db9d1d0639aad701803a

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

#
# a method for checking the number of pending jobs left in the engine
#

module PendingJobsMixin

  def assert_no_jobs_left

    #cname = @engine.class.name
    #min_jobs = if cname == 'OpenWFE::CachedFilePersistedEngine'
    #  1
    #elsif cname == 'OpenWFE::Extras::CachedDbPersistedEngine'
    #  1
    #else
    #  0
    #end
    #assert_equal min_jobs, @engine.get_scheduler.pending_job_count

    assert_equal 0, @engine.get_scheduler.at_job_count
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/pending.rb