Sha256: 33556968901cfaeca6175f2cfdbad372f2fbc951504356cf918f6f00dbd3ad2d

Contents?: true

Size: 238 Bytes

Versions: 1

Compression:

Stored size: 238 Bytes

Contents

require 'test_helper'

class Workhorse::PollerTest < WorkhorseTest
  def test_interruptable_sleep
    w = Workhorse::Worker.new(polling_interval: 60)
    w.start
    sleep 2

    Timeout.timeout(1.5) do
      w.shutdown
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workhorse-0.0.2 test/workhorse/poller_test.rb