NO-JIRA Providing information about failure on test
Travis CI has been reporting test failures. Looking on logs I could see a critical failure happening but not much information on why. This will help identify further issues.
This commit is contained in:
parent
6ec375bdbe
commit
65db317176
|
@ -187,7 +187,7 @@ public abstract class AbstractSequentialFileFactory implements SequentialFileFac
|
|||
if (critialErrorListener != null) {
|
||||
critialErrorListener.onIOException(exception, message, file);
|
||||
} else {
|
||||
logger.warn("Critical IO Error Called. No Critical IO Error Handler Registered");
|
||||
logger.warn("Critical IO Error Called. No Critical IO Error Handler Registered::" + message + " at file " + file, exception);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -114,6 +114,7 @@ public abstract class AIOTestBase extends ActiveMQTestBase {
|
|||
|
||||
@Override
|
||||
public void onError(final int errorCode, final String errorMessage) {
|
||||
new Exception("Error called:: " + errorCode + " message::" + errorMessage).printStackTrace();
|
||||
errorCalled++;
|
||||
if (outputList != null) {
|
||||
outputList.add(order);
|
||||
|
|
|
@ -210,8 +210,8 @@ public class MultiThreadAsynchronousFileTest extends AIOTestBase {
|
|||
addData(libaio, buffer, callback);
|
||||
if (sync) {
|
||||
waitForLatch(latchFinishThread);
|
||||
assertEquals(0, callback.errorCalled);
|
||||
assertTrue(callback.doneCalled);
|
||||
assertFalse(callback.errorCalled != 0);
|
||||
}
|
||||
}
|
||||
if (!sync) {
|
||||
|
|
Loading…
Reference in New Issue