HBASE-14197 TestRegionServerHostname#testInvalidRegionServerHostnameAbortsServer fails in Jenkins

This commit is contained in:
tedyu 2015-08-07 18:48:23 -07:00
parent ea8833fd63
commit d4fc7cf2ba
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ public class TestRegionServerHostname {
} catch (IOException ioe) {
Throwable t1 = ioe.getCause();
Throwable t2 = t1.getCause();
assertTrue(t2.getMessage().contains("Failed resolve of " + invalidHostname));
assertTrue(t1.getMessage() + " - " + t2.getMessage(),
t2.getMessage().contains("Failed resolve of " + invalidHostname) ||
t2.getMessage().contains("Problem binding to " + invalidHostname));
return;
} finally {
TEST_UTIL.shutdownMiniCluster();