Skip to content

Commit

Permalink
fix edge quoting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderankin committed Aug 16, 2024
1 parent c60b44c commit 518d970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mssql/testcontainers/mssql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _configure(self) -> None:
@wait_container_is_ready(AssertionError)
def _connect(self) -> None:
status, _ = self.exec(
["bash", "-c", f"/opt/mssql-tools*/bin/sqlcmd -U {self.username} -P {self.password} -Q 'SELECT 1' -C"]
["bash", "-c", f"/opt/mssql-tools*/bin/sqlcmd -U \"$SQLSERVER_USER\" -P \"$SA_PASSWORD\" -Q 'SELECT 1' -C"]
)
assert status == 0, "Cannot run 'SELECT 1': container is not ready"

Expand Down

0 comments on commit 518d970

Please sign in to comment.