about summary refs log tree commit homepage
path: root/test/test_mogtool_bigfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_mogtool_bigfile.rb')
-rw-r--r--test/test_mogtool_bigfile.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_mogtool_bigfile.rb b/test/test_mogtool_bigfile.rb
index e424def..01de78e 100644
--- a/test/test_mogtool_bigfile.rb
+++ b/test/test_mogtool_bigfile.rb
@@ -1,5 +1,5 @@
 # -*- encoding: binary -*-
-require "./test/integration"
+require "./test/fresh"
 require "net/http"
 ok = true
 unless File.executable?(`which mogtool 2>/dev/null`.strip)
@@ -7,7 +7,8 @@ unless File.executable?(`which mogtool 2>/dev/null`.strip)
   ok = false
 end
 
-class TestMogtoolBigfile < TestMogIntegration
+class TestMogtoolBigfile < Test::Unit::TestCase
+  include TestFreshSetup
   buf = File.open("/dev/urandom") { |fp| fp.read(1024) }
   buf *= 1024
   RAND = Tempfile.new("rand")
@@ -18,7 +19,8 @@ class TestMogtoolBigfile < TestMogIntegration
   RAND_SHA1 = sha1.hexdigest
 
   def setup
-    super
+    setup_mogilefs
+    add_host_device_domain
     RAND.rewind
     @big_uuid = "big-#{uuid}"
     @client = MogileFS::MogileFS.new(:hosts => @trackers, :domain => @domain)