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

I get an error while I run "mvn test" on the project #20

Closed
deepng opened this issue Feb 23, 2025 · 1 comment · Fixed by #23
Closed

I get an error while I run "mvn test" on the project #20

deepng opened this issue Feb 23, 2025 · 1 comment · Fixed by #23

Comments

@deepng
Copy link

deepng commented Feb 23, 2025

For anything other than bug reports and feature requests (performance, refactoring, etc),
just go ahead and file the issue. Please provide as many details as possible.

If you have a question or a support request, please open a new discussion on GitHub Discussions

Please do not create issues on the Issue Tracker for questions or support requests.
We would like to keep the issue tracker exclusively for bug reports and feature requests.

The github discussions link gives a 404. So posting it here.
I get this error when I run mvn test on the project.
I have Docker CLI installed. What is the fix here?

[ERROR] Tests run: 20, Failures: 0, Errors: 20, Skipped: 0, Time elapsed: 0.089 s <<< FAILURE! -- in io.modelcontextprotocol.client.ServletSseMcpSyncClientTests
[ERROR] io.modelcontextprotocol.client.ServletSseMcpSyncClientTests.testInitializeWithRootsListProviders -- Time elapsed: 0.013 s <<< ERROR!
java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration
	at org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:229)
	at org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:154)
	at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:196)
	at org.testcontainers.DockerClientFactory$1.getDockerClient(DockerClientFactory.java:108)
	at com.github.dockerjava.api.DockerClientDelegate.authConfig(DockerClientDelegate.java:109)
	at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:321)
	at io.modelcontextprotocol.client.ServletSseMcpSyncClientTests.onStart(ServletSseMcpSyncClientTests.java:37)
	at io.modelcontextprotocol.client.AbstractMcpSyncClientTests.setUp(AbstractMcpSyncClientTests.java:59)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
@tzolov
Copy link
Contributor

tzolov commented Feb 26, 2025

@deepng, some tests require Docker.
To run tests, pre-install docker and npx, then run ./mvnw test.
Alternatively, build without tests using ./mvnw clean install -DskipTests.
I'll keep this issue open as a reminder to update the README docs.

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 a pull request may close this issue.

2 participants