Skip to content

Commit

Permalink
Fix issue that one always runs the first server, not taking into acco…
Browse files Browse the repository at this point in the history
…unt the passed server
  • Loading branch information
simonharrer committed Jun 13, 2024
1 parent f4b4123 commit 15a7871
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datacontract/data_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ def test(self) -> Run:
if self._examples:
server_name = "examples"
server = self._get_examples_server(data_contract, run, tmp_dir)
if self._server:
server = data_contract.servers.get(self._server)
else:
server_name = list(data_contract.servers.keys())[0]
server = data_contract.servers.get(server_name)
Expand Down

0 comments on commit 15a7871

Please sign in to comment.