Test a source crashing after an entrust.

This adds a test for destination behaviour, in that if a source crashes
after sending an entrust message but before the destination can reply,
the destination must allow the source to reconnect and retry the mirror.
This commit is contained in:
Alex Young
2012-07-11 15:19:50 +01:00
parent 84dd052465
commit f3cebcdcd5
5 changed files with 61 additions and 3 deletions

View File

@@ -54,6 +54,10 @@ class TestDestErrorHandling < Test::Unit::TestCase
run_fake( "source/close_after_write" )
end
def test_disconnect_before_entrust_reply_causes_error
run_fake( "source/close_after_entrust" )
end
def test_disconnect_before_write_reply_causes_error
# Note that this is an odd case: writing the reply doesn't fail.