I like this test - it uses a real proxy and a real object server on a real socket to really disconnect - and then it looks at the entire state of the world on-disk to show whats wrong. It has a test for repl that passes. It re-phrases the same test for ec with little code duplication and it fails. it reads ok I think. it cleans up after itself.
They say most of the time writing the test is the hard part... although I'm not sure on this one. We'll see!
I like this test - it uses a real proxy and a real object server on a real socket to really disconnect - and then it looks at the entire state of the world on-disk to show whats wrong. It has a test for repl that passes. It re-phrases the same test for ec with little code duplication and it fails. it reads ok I think. it cleans up after itself.
They say most of the time writing the test is the hard part... although I'm not sure on this one. We'll see!