From 6b1a877dc3f6b29ab02eeb2ab306098647d3d946 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 7 Dec 2018 22:43:50 +0000 Subject: [PATCH] Tweaked test file size, and removed debug ENV fiddling --- tests/acceptance/test_write_during_migration.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/test_write_during_migration.rb b/tests/acceptance/test_write_during_migration.rb index 83cc6d1..96ba97d 100755 --- a/tests/acceptance/test_write_during_migration.rb +++ b/tests/acceptance/test_write_during_migration.rb @@ -204,14 +204,16 @@ class TestWriteDuringMigration < Test::Unit::TestCase end def test_mirroring_can_be_restarted + @size = 100 * 1024 * 1024 # 100MB Dir.mktmpdir do |tmpdir| Dir.chdir(tmpdir) do make_files - ENV['DEBUG'] = '1' launch_servers - ENV.delete 'DEBUG' + # This is a bit racy. It needs to be slow enough that the migration + # isn't finished before the stop runs, and slow enough so that we can + # stop/start a few times. 3.times do start_mirror sleep 0.1