public virtual void TestConcat() { ResetCall(); string file1 = "/testNamenodeRetryCache/testConcat/file1"; string file2 = "/testNamenodeRetryCache/testConcat/file2"; // Two retried concat calls succeed ConcatSetup(file1, file2); NewCall(); nnRpc.Concat(file1, new string[] { file2 }); nnRpc.Concat(file1, new string[] { file2 }); nnRpc.Concat(file1, new string[] { file2 }); // A non-retried concat request fails NewCall(); try { // Second non-retry call should fail with an exception nnRpc.Concat(file1, new string[] { file2 }); NUnit.Framework.Assert.Fail("testConcat - expected exception is not thrown"); } catch (IOException) { } }