[
https://issues.apache.org/jira/browse/SAMZA-2476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lakshmi Manasa Gaduputi resolved SAMZA-2476.
--------------------------------------------
Resolution: Fixed
Fixed in two PRs:
1. [https://github.com/apache/samza/pull/1298]
2. [https://github.com/apache/samza/pull/1306]
> 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
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)