Github user merrimanr commented on a diff in the pull request:

    https://github.com/apache/metron/pull/1239#discussion_r226378008
  
    --- Diff: 
metron-platform/metron-writer/src/test/java/org/apache/metron/writer/BulkWriterComponentTest.java
 ---
    @@ -161,9 +165,12 @@ public void 
writeShouldThrowExceptionWhenHandleErrorIsFalse() throws Exception {
       @Test
       public void writeShouldProperlyHandleWriterException() throws Exception {
         Throwable e = new Exception("test exception");
    -    MetronError error = new MetronError()
    +    MetronError expectedError1 = new MetronError()
                 .withSensorType(Collections.singleton(sensorType))
    -            
.withErrorType(Constants.ErrorType.INDEXING_ERROR).withThrowable(e).withRawMessages(Arrays.asList(message1,
 message2));
    +            
.withErrorType(Constants.ErrorType.INDEXING_ERROR).withThrowable(e).withRawMessages(Collections.singletonList(message1));
    --- End diff --
    
    I agree.  Done.


---

Reply via email to