Lesson 125: testcontainers problem
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- java, mysql
- Domain
- databases, testing-qa
Research direction
Start at MySqlTest line 28, or the later MySqlIT equivalent, and inspect how the MySQL container image is selected. Run the Lesson 125 integration test with the project’s container runtime; done means the MySQL container starts and the test connects successfully.
Written by the indexing model from the issue text.
Description
problem running the test, I found that the mysql container could not be connected to with the output showing errors, including "Connection refused: getsockopt"
mysql 9.3.0 was being pulled which seems to have a problem
mysql 9.1.0 in lecture currently
source: github testcontainers-java issue 10184
The solution was to specify mysql 8 rather than 9. Literally one character change in MySqlTest (later MySqlIT) line 28 :)
Better yet use "mysql:lts"
I was using podman (running on WSL2 in my case) rather than Docker
- Dominant language
- Java
- Stars
- 57
- Forks
- 605
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from springframeworkguru/spring-7-rest-mvc
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
.remove(this) Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
All issues in springframeworkguru/spring-7-rest-mvc
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100