-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Few tests are not stable in combination of Windows OS + Docker #484
Comments
Test: TestcontainersContainerTest.GetAuthConfig I see two ways how to solve it:
Which approach is better? |
Test: CouchDbTestcontainerTest.ExecScriptInRunningContainer const string script = @"
#!/bin/bash
curl -v -X PUT http://couchdb:couchdb@127.0.0.1:5984/mydatabase/
curl -v -X PUT http://couchdb:couchdb@127.0.0.1:5984/mydatabase/""001"" -d '{""name"":""MyName""}'
"; Behavior of this script depends on end of line characters. I see fix in ensuring that the command will try replace const string script = @"
#!/bin/bash
curl -v -X PUT http://couchdb:couchdb@127.0.0.1:5984/mydatabase/
curl -v -X PUT http://couchdb:couchdb@127.0.0.1:5984/mydatabase/""001"" -d '{""name"":""MyName""}'
".Replace("\r\n", "\n"); |
diff --git a/src/Testcontainers/Clients/TestcontainersConfigurationConverter.cs b/src/Testcontainers/Clients/TestcontainersConfigurationConverter.cs
index b75997b..d0cab90 100644
--- a/src/Testcontainers/Clients/TestcontainersConfigurationConverter.cs
+++ b/src/Testcontainers/Clients/TestcontainersConfigurationConverter.cs
@@ -148,7 +148,7 @@ namespace DotNet.Testcontainers.Clients
public override IEnumerable<KeyValuePair<string, IList<PortBinding>>> Convert([CanBeNull] IEnumerable<KeyValuePair<string, string>> source)
{
return source?.Select(portBinding => new KeyValuePair<string, IList<PortBinding>>(
- GetQualifiedPort(portBinding.Key), new[] { new PortBinding { HostPort = "0".Equals(portBinding.Value, StringComparison.Ordinal) ? null : portBinding.Value } }));
+ GetQualifiedPort(portBinding.Key), new[] { new PortBinding { HostPort = portBinding.Value } }));
}
}
}
|
I am getting Timeout exception. PS: Nice that you look at it. |
…tAuthenticationConfiguration tests
Published in |
Describe the bug
When development environment consist from:
Then following tests fail
Or is unstable when all tests are executed
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All tests should pass on first run
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: