Fix row selection logic to not wait
[arvados.git] / apps / workbench / test / helpers / download_helper.rb
index 8f387f419bf50a7bc5acba39b8a4fef1a36db368..776f0c713ca146b1f297c0ddc70fe833d6602994 100644 (file)
@@ -6,7 +6,9 @@ module DownloadHelper
   end
 
   def clear
-    FileUtils.rm_r path
+    if File.exist? path
+      FileUtils.rm_r path
+    end
     begin
       Dir.mkdir path
     rescue Errno::EEXIST