Sha256: 5edf96eb41a9964186e6d597363e72086352e34872f568c4f1baf9918987fcdf

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

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

require 'openwfe/engine/file_persisted_engine'


module PendingJobsMixin

    def assert_no_jobs_left

        min_jobs = if @engine.is_a?(OpenWFE::CachedFilePersistedEngine)
            1
        #elsif @engine.is_a?(OpenWFE::FilePersistedEngine)
        #    0
        else
            0
        end

        assert_equal @engine.get_scheduler.pending_job_count, min_jobs
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openwferu-0.9.11 test/pending.rb
openwferu-0.9.12 test/pending.rb
openwferu-0.9.12.863 test/pending.rb
openwferu-0.9.13 test/pending.rb
openwferu-0.9.14 test/pending.rb
openwferu-0.9.15 test/pending.rb