Skip to content

Commit

Permalink
try to get Travis working again
Browse files Browse the repository at this point in the history
  • Loading branch information
alexch committed Jan 24, 2018
1 parent 442eded commit d5ee964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/rerun/watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def start

@thread = Thread.new do
@listener = Listen.to(*@directories, only: watching, ignore: ignoring, wait_for_delay: 1, force_polling: @force_polling) do |modified, added, removed|
if((modified.size + added.size + removed.size) > 0)
count = modified.size + added.size + removed.size
if count > 0
@client_callback.call(:modified => modified, :added => added, :removed => removed)
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/watcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def remove test_file
@watcher.pause
create "#{@dir}/pause_test.txt"
@log.should be_nil
sleep 0.25 # work around very rare timing issue on Travis
sleep 0.5 # work around rare timing issue on Travis
@watcher.unpause
test_file = "#{@dir}/pause_test2.txt"
create test_file
Expand Down

0 comments on commit d5ee964

Please sign in to comment.