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 useJUnitPlatform() #34

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Adding useJUnitPlatform() #34

merged 2 commits into from
Dec 19, 2023

Conversation

edeandrea
Copy link
Contributor

Adding useJUnitPlatform() to the test stanza. As it stands, the unit tests are never actually being executed, including in your GitHub Actions CI/CD process.

@edeandrea
Copy link
Contributor Author

@oleg-nenashev / @tomakehurst Please check this out - Because of this change and the fact that the tests are actually now executing, some of the tests fail and need to be fixed. I don't know how to fix them, but they were never actually being executed before.

@edeandrea
Copy link
Contributor Author

edeandrea commented Dec 19, 2023

This test is failing, but only on windows with Java 11:

GrpcAcceptanceTest > fixedDelay() FAILED
    java.lang.AssertionError: 

17 tests completed, 1 failed
    Expected: a value equal to or greater than <1000L>
         but: <992L> was less than <1000L>
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
        at org.wiremock.grpc.GrpcAcceptanceTest.fixedDelay(GrpcAcceptanceTest.java:272)

This test was introduced by #31 and apparently doesn't work correctly in some situations.

@@ -63,7 +63,7 @@ public GrpcResponseDefinitionBuilder withTemplatingEnabled(boolean enabled) {

public GrpcResponseDefinitionBuilder withFixedDelay(long milliseconds) {
this.delay = new FixedDelayDistribution(milliseconds);
return null;
return this;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I brought in #35 to this PR

@edeandrea
Copy link
Contributor Author

It seems #35 will fix this

@tomakehurst tomakehurst merged commit a832565 into wiremock:main Dec 19, 2023
7 checks passed
@tomakehurst
Copy link
Member

Thanks!

@edeandrea edeandrea deleted the patch-3 branch December 19, 2023 15:51
edeandrea added a commit to edeandrea/wiremock-grpc-extension that referenced this pull request Dec 19, 2023
* Adding useJUnitPlatform()

* GrpcResponseDefinitionBuilder.withFixedDelay returning null instead of this
@edeandrea edeandrea mentioned this pull request Dec 19, 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