Sha256: b91b62d9b5f48bc39151276fd9e2a41c6605746bf2754246a83cfaa2c7c1e828

Contents?: true

Size: 519 Bytes

Versions: 2

Compression:

Stored size: 519 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

2 entries across 2 versions & 2 rubygems

Version Path
openwferu-0.9.17 test/pending.rb
ruote-0.9.18 test/pending.rb