[
https://issues.apache.org/jira/browse/BEAM-11797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17311758#comment-17311758
]
Ning Kang commented on BEAM-11797:
----------------------------------
Find the root cause: assert_called_with does not mean `asserting has been
called with` but `asserting the last call is`. And there is an
IPythonLogHandler that emits logs from time to time that is not so
deterministic when running on a Jenkins environment. The handler uses the same
display module that is used by the decorator in test, causing the flakiness.
Changed `assert_called_with` with `assert_any_call` to fix it.
> Flaky interactive test in Precommit
> -----------------------------------
>
> Key: BEAM-11797
> URL: https://issues.apache.org/jira/browse/BEAM-11797
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core, testing
> Reporter: Robert Bradshaw
> Assignee: Ning Kang
> Priority: P2
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)