Skip to content

Commit 1cc16b6

Browse files
authored
Merge pull request #20278 from jmchilton/transient_api_test_1
Fix a transiently failing API test.
2 parents d0dc2ad + 3ac872c commit 1cc16b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/galaxy_test/api/test_dataset_collections.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,13 @@ def test_upload_nested(self):
437437
element0 = hdca["elements"][0]
438438
assert element0["element_identifier"] == "samp1"
439439

440-
@skip_if_github_down
441440
def test_upload_collection_from_url(self):
442441
with self.dataset_populator.test_history(require_new=False) as history_id:
443442
elements = [
444443
{
445444
"src": "url",
446-
"url": "https://raw.githubusercontent.com/galaxyproject/galaxy/dev/test-data/4.bed",
445+
"url": self.dataset_populator.base64_url_for_string("hello world"),
446+
"name": "hello.txt",
447447
"info": "my cool bed",
448448
}
449449
]
@@ -462,8 +462,8 @@ def test_upload_collection_from_url(self):
462462
hdca = self._assert_one_collection_created_in_history(history_id)
463463
assert len(hdca["elements"]) == 1, hdca
464464
element0 = hdca["elements"][0]
465-
assert element0["element_identifier"] == "4.bed"
466-
assert element0["object"]["file_size"] == 61
465+
assert element0["element_identifier"] == "hello.txt"
466+
assert element0["object"]["file_size"] == 11
467467

468468
def test_upload_collection_deferred(self):
469469
with self.dataset_populator.test_history(require_new=False) as history_id:

0 commit comments

Comments
 (0)