Skip to content

Create a test-jar for the core module#957

Merged
adutra merged 6 commits into
4.xfrom
test-jar
Feb 28, 2018
Merged

Create a test-jar for the core module#957
adutra merged 6 commits into
4.xfrom
test-jar

Conversation

@adutra
Copy link
Copy Markdown
Contributor

@adutra adutra commented Feb 22, 2018

No description provided.

@adutra adutra added this to the 4.0.0-alpha4 milestone Feb 22, 2018
@tolbertam
Copy link
Copy Markdown
Contributor

What do you think about creating a separate module in the same vein as test-infra? I suspect this is being done to access some of the utilities provided in these tests?

On the other hand i'm not sure how that would work, as that test module would likely require code from the core source, so it would create a circular dependency, so maybe what is done here is for the best.

@adutra
Copy link
Copy Markdown
Contributor Author

adutra commented Feb 23, 2018

On the other hand i'm not sure how that would work, as that test module would likely require code from the core source, so it would create a circular dependency, so maybe what is done here is for the best.

Unfortunately classes like RequestHandlerTestHarness indeed depend on the core classes so that would create a circular dependency. Unless we move all the unit tests to a separate module as well, but that seems overkill.

@tolbertam
Copy link
Copy Markdown
Contributor

Unfortunately classes like RequestHandlerTestHarness indeed depend on the core classes so that would create a circular dependency. Unless we move all the unit tests to a separate module as well, but that seems overkill.

💯 agreed with the approach you are using in that case then.

@tolbertam
Copy link
Copy Markdown
Contributor

👍, on deploying test-jar. there are some failing unit tests in travis, are those caused by this?

@adutra
Copy link
Copy Markdown
Contributor Author

adutra commented Feb 23, 2018

there are some failing unit tests in travis, are those caused by this?

No these were transient failures, I triggered a new build and it passed.

@tolbertam
Copy link
Copy Markdown
Contributor

No these were transient failures, I triggered a new build and it passed.

Ah ok, i'll look into that test. I could have sworn we've had issues with this particular test in the past and made it more resilient, but perhaps there is something more we can do there.

@adutra adutra requested a review from olim7t February 23, 2018 17:00
Copy link
Copy Markdown
Contributor

@olim7t olim7t left a comment

Choose a reason for hiding this comment

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

👍 , reusing RequestHandlerTestHarness outside of the project is really nice to have.
See my comment about future assertions though.

public CompletionStageAssert<V> isCancelled() {
assertThat(actual.toCompletableFuture().isCancelled())
.overridingErrorMessage("Expected completion stage to be cancelled")
.isTrue();
Copy link
Copy Markdown
Contributor

@olim7t olim7t Feb 23, 2018

Choose a reason for hiding this comment

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

It might be good to have a small delay in here, I've had similar assertions fail in CI because of timing issues (see 82d0d28).

@adutra adutra merged commit 3c046e2 into 4.x Feb 28, 2018
@adutra adutra deleted the test-jar branch February 28, 2018 14:02
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.

3 participants