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

Adding UncheckedIOException to onFailure handler #16

Conversation

ricardo-mestre
Copy link

No description provided.

@ricardo-mestre ricardo-mestre force-pushed the propagate-io-exception branch 4 times, most recently from bbf0c5b to 83637b5 Compare December 20, 2023 20:39
CompletableResultCode result = exporter.export(new NoOpMarshaler(), 0);
result.join(1, TimeUnit.MINUTES);
exporter.shutdown().join(1, TimeUnit.MINUTES);
Assertions.assertThat(result.isSuccess()).isTrue();
Copy link
Owner

Choose a reason for hiding this comment

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

Not sure what this test has to do with the code we've been talking about.

Copy link
Author

@ricardo-mestre ricardo-mestre Dec 21, 2023

Choose a reason for hiding this comment

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

I intend to cover Lines 220 and 221 of JdkHttpSender. I can't override the method writeJsonTo on the NoOpMarshaler so I'm using a succes flow instead adding .exportAsJson() in the builder.

Copy link
Author

@ricardo-mestre ricardo-mestre Dec 21, 2023

Choose a reason for hiding this comment

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

Just removed the authentication and shutdown part to focus more on the regular success flow

@jack-berg jack-berg merged commit 0a0ca5b into jack-berg:propagate-io-exception Dec 21, 2023
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