about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--test/unit/test_upload.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/test_upload.rb b/test/unit/test_upload.rb
index 8246f65..58058f1 100644
--- a/test/unit/test_upload.rb
+++ b/test/unit/test_upload.rb
@@ -74,6 +74,12 @@ class UploadTest < Test::Unit::TestCase
     sock.close
     assert path != path2
 
+    # make sure the next request comes in so the unlink got processed
+    sock = TCPSocket.new(@addr, @port)
+    sock.syswrite("GET ?lasdf\r\n\r\n\r\n\r\n")
+    sock.sysread(4096) rescue nil
+    sock.close
+
     assert ! File.exist?(path)
   end