You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Lakshmi Manasa Gaduputi (Jira)" <ji...@apache.org> on 2020/02/28 18:30:00 UTC
[jira] [Created] (SAMZA-2476) Fix flaky tests introduced in PR-1239
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)