From 30e4611342869044dfffa1761fdcc4ea7dbf3adf Mon Sep 17 00:00:00 2001 From: Michael Kessler Date: Fri, 13 May 2011 12:33:56 +0200 Subject: [PATCH] Update the last event time after the rest period. --- spec/guard/listeners/darwin_spec.rb | 1 + spec/guard/listeners/linux_spec.rb | 1 + spec/guard/listeners/polling_spec.rb | 1 + spec/guard/listeners/windows_spec.rb | 1 + 4 files changed, 4 insertions(+) diff --git a/spec/guard/listeners/darwin_spec.rb b/spec/guard/listeners/darwin_spec.rb index da05cc0..c6d54eb 100644 --- a/spec/guard/listeners/darwin_spec.rb +++ b/spec/guard/listeners/darwin_spec.rb @@ -61,6 +61,7 @@ private def start sleep 1 + @listener.update_last_event Thread.new { @listener.start } sleep 1 end diff --git a/spec/guard/listeners/linux_spec.rb b/spec/guard/listeners/linux_spec.rb index 46a8ab7..a36b33c 100644 --- a/spec/guard/listeners/linux_spec.rb +++ b/spec/guard/listeners/linux_spec.rb @@ -117,6 +117,7 @@ private def start sleep 1 + @listener.update_last_event Thread.new { @listener.start } sleep 1 end diff --git a/spec/guard/listeners/polling_spec.rb b/spec/guard/listeners/polling_spec.rb index 12e86e6..258783c 100644 --- a/spec/guard/listeners/polling_spec.rb +++ b/spec/guard/listeners/polling_spec.rb @@ -48,6 +48,7 @@ private def start sleep 1 + @listener.update_last_event Thread.new { @listener.start } sleep 1 end diff --git a/spec/guard/listeners/windows_spec.rb b/spec/guard/listeners/windows_spec.rb index 1545164..b0d945e 100644 --- a/spec/guard/listeners/windows_spec.rb +++ b/spec/guard/listeners/windows_spec.rb @@ -76,6 +76,7 @@ private def start sleep 1 + @listener.update_last_event Thread.new { @listener.start } sleep 1 end