Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: increase flaky test timeout #1875

Merged
merged 1 commit into from
Nov 20, 2023
Merged

test: increase flaky test timeout #1875

merged 1 commit into from
Nov 20, 2023

Conversation

efgpinto
Copy link
Member

Close #1873

Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@efgpinto efgpinto merged commit 7faf192 into main Nov 20, 2023
65 checks passed
@efgpinto efgpinto deleted the fix-flaky-test branch November 20, 2023 16:27
@@ -51,7 +53,7 @@ public void createAndPublish() throws Exception {
createCustomer(customer);

// wait for action to publish the change of state
var createdMsgOut = outTopic.expectOneTyped(CustomerApi.Customer.class);
var createdMsgOut = outTopic.expectOneTyped(CustomerApi.Customer.class, Duration.of(10, ChronoUnit.SECONDS));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is another usage of outTopic.expectOneTyped a few lines below.
I might want to also increase its timeout.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed the flakiness come from combining the boostrapping of this on the runtime side + the delay on publishing the state, thus most likely to happen on the first call than subsequent ones.. But yeah, I would guess it can also happen in a second call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java-sdk-protobuf kalix-runtime Runtime and SDKs sub-team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failed: Maven sample (java-protobuf-customer-registry-kafka-quickstart)
2 participants