Tweaked test file size, and removed debug ENV fiddling

This commit is contained in:
Patrick J Cherry
2018-12-07 22:43:50 +00:00
parent e5133a50bd
commit 6b1a877dc3

View File

@@ -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