samza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lakshmi Manasa Gaduputi (Jira)" <j...@apache.org>
Subject [jira] [Created] (SAMZA-2476) Fix flaky tests introduced in PR-1239
Date Fri, 28 Feb 2020 18:30:00 GMT
Lakshmi Manasa Gaduputi created SAMZA-2476:
----------------------------------------------

             Summary: Fix flaky tests introduced in PR-1239
                 Key: SAMZA-2476
                 URL: https://issues.apache.org/jira/browse/SAMZA-2476
             Project: Samza
          Issue Type: Task
            Reporter: Lakshmi Manasa Gaduputi
            Assignee: Lakshmi Manasa Gaduputi


Travis builds occasionally fail with 
{code:java}
org.apache.samza.system.azureblob.avro.TestAzureBlobOutputStream.testCloseMultipleBlocks

org.mockito.exceptions.misusing.UnfinishedStubbingException: 1753    
Unfinished stubbing detected here:1754    
-> at org.apache.samza.system.azureblob.avro.TestAzureBlobOutputStream.testCloseMultipleBlocks(TestAzureBlobOutputStream.java:235)
E.g. thenReturn() may be missing.
Examples of correct stubbing:
       when(mock.isOk()).thenReturn(true);           
       when(mock.isOk()).thenThrow(exception);        
       doThrow(exception).when(mock).someVoidMethod();
Hints:
    1. missing thenReturn()
    2. you are trying to stub a final method, you naughty developer!
    3: you are stubbing the behaviour of another mock inside before 'thenReturn' instruction
if completed
        at org.apache.samza.system.azureblob.avro.TestAzureBlobOutputStream.testCloseMultipleBlocks(TestAzureBlobOutputStream.java:241){code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message