Skip to content

Commit

Permalink
13548 Fixed integration tests source-tidb Mac OS (#13927)
Browse files Browse the repository at this point in the history
  • Loading branch information
suhomud authored Jun 20, 2022
1 parent 174f15d commit bc03fa4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import io.airbyte.integrations.base.ssh.SshHelpers;
import io.airbyte.integrations.standardtest.source.SourceAcceptanceTest;
import io.airbyte.integrations.standardtest.source.TestDestinationEnv;
import io.airbyte.integrations.util.HostPortResolver;
import io.airbyte.protocol.models.CatalogHelpers;
import io.airbyte.protocol.models.ConfiguredAirbyteCatalog;
import io.airbyte.protocol.models.ConfiguredAirbyteStream;
Expand Down Expand Up @@ -43,8 +44,8 @@ protected void setupEnvironment(final TestDestinationEnv testEnv) throws Excepti
container.start();

config = Jsons.jsonNode(ImmutableMap.builder()
.put("host", "127.0.0.1")
.put("port", container.getFirstMappedPort())
.put("host", HostPortResolver.resolveHost(container))
.put("port", HostPortResolver.resolvePort(container))
.put("username", "root")
.put("database", "test")
.build());
Expand Down

0 comments on commit bc03fa4

Please sign in to comment.