HDFS-10449. TestRollingFileSystemSinkWithHdfs#testFailedClose() fails on branch-2. Contributed by Takanobu Asanuma.

This commit is contained in:
Akira Ajisaka 2016-06-03 03:08:22 +09:00
parent 384a84828f
commit cbf6cacf64

View File

@ -187,8 +187,8 @@ public void testFailedClose() throws IOException {
try {
ms.stop();
fail("No exception was generated while stopping sink "
+ "even though HDFS was unavailable");
assertTrue("No exception was generated while stopping sink "
+ "even though HDFS was unavailable", MockSink.errored);
} catch (MetricsException ex) {
// Expected
} finally {