Skip to content

Commit

Permalink
Fix case where triggered happened before hitting thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 7, 2016
1 parent 7eb3ea4 commit 01555dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/build/files/monitor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ module Build::Files::MonitorSpec
end

touched = false

triggered = 0

thread = Thread.new do
while triggered == 0
while triggered == 0 or touched == false
sleep 0.1 if touched

path.touch
Expand Down

0 comments on commit 01555dc

Please sign in to comment.