Test that a write reply with the wrong magic will force a retry

This commit is contained in:
Alex Young
2012-07-03 17:01:39 +01:00
parent 5c66d35677
commit 061512f3dc
3 changed files with 48 additions and 2 deletions

View File

@@ -89,6 +89,13 @@ class TestSourceErrorHandling < Test::Unit::TestCase
end
def test_bad_write_reply_causes_retry
run_fake( "dest/write_wrong_magic" )
@env.mirror12_unchecked
assert_success
end
private
def run_fake(name)
@env.run_fake( name, @env.ip, @env.port2 )