Skip to content

Commit 673d9bb

Browse files
committed
simplify test
1 parent 76af174 commit 673d9bb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/test_cmd_serve.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,12 @@ def test_workflow_test_with_serve(self):
173173
"""
174174
cat = os.path.join(PROJECT_TEMPLATES_DIR, "demo", "cat.xml")
175175
test_artifact = os.path.join(TEST_DATA_DIR, "wf2.ga")
176-
json_out = tempfile.NamedTemporaryFile(delete=False, suffix='.json')
177176
extra_args = [
178177
"--serve",
179178
test_artifact,
180179
"--port", str(self._port),
181180
"--no_dependency_resolution",
182181
"--extra_tools", cat,
183-
"--test_output_json", json_out.name,
184182
]
185183
self._launch_thread_and_wait(self._run_test, extra_args)
186184
time.sleep(30)
@@ -192,14 +190,6 @@ def test_workflow_test_with_serve(self):
192190
assert workflows[0]['name'] == 'TestWorkflow1'
193191
histories = user_gi.histories.get_histories(name="CWL Target History")
194192
assert len(histories) == 1
195-
for _ in range(60):
196-
state_ids = [d['state'] for d in user_gi.histories.show_history(histories[0]['id'], contents=True)]
197-
if len(state_ids) == 3 and set(state_ids) == {'ok', }:
198-
break
199-
else:
200-
time.sleep(10)
201-
else:
202-
raise Exception("Datasets did not reach an ok state within 10 minutes.")
203193

204194
@skip_if_environ("PLANEMO_SKIP_GALAXY_TESTS")
205195
def test_serve_profile(self):

0 commit comments

Comments
 (0)