Replies: 2 comments 6 replies
-
Test.DockerDb.Tests.zip |
Beta Was this translation helpful? Give feedback.
5 replies
-
Hello, you might be interested in this SO article, the problem is linked to ipv6: You can either use 127.0.0.1 instead of localhost, or disable ipv6 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
So I'm trying to set up unit tests that talk to my database running in docker container. I used this library, and for now it's mostly code copied from this file and corresponding fixture.
I am able to start the container up, I see logs indicating that DB is running, I can execute scripts using
sqlcmd
command, but the ConnectionEstablished test keeps failing and I can't understand why.Can't connect to the DB via ms sql management studio as well.
I'm positive I'm using correct port# when connecting through management studio.
I'm on Windows with WSL, and I have docker installed as part of Rancher Desktop.
What can be the reason of connection failing to establish and what should I check/change to fix this issue?
Beta Was this translation helpful? Give feedback.
All reactions