Skip to content

Conversation

vitarb
Copy link
Contributor

@vitarb vitarb commented Nov 11, 2020

Common flaky test that we've seen so far was StickyWorkerTest:

io.temporal.worker.StickyWorkerTest > whenStickyIsEnabledThenTheWorkflowIsCachedChildWorkflows[Docker] FAILED
    java.lang.AssertionError: 1 expected:<2> but was:<1>

This test has been relying on sleep in order to wait for the metric reporter to send metrics.
Instead we should just close metric scope, which closes reporter, flushing all metrics.

Verified multiple times locally that tests pass.

@vitarb vitarb requested a review from mfateev November 11, 2020 06:01
@vitarb vitarb merged commit cd103b0 into temporalio:master Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants