Skip to content

Commit 2edfcc4

Browse files
committed
Editing unit test
1 parent d0b9cc3 commit 2edfcc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_datasets/test_dataset_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,10 +1112,10 @@ def test_publish_fetch_ignore_attribute(self):
11121112
self.assertIsInstance(dataset.dataset_id, int)
11131113

11141114
trials = 0
1115-
timeout_limit = 100
1115+
timeout_limit = 1000
11161116
dataset = None
11171117
# fetching from server
1118-
# loop till timeout and not successful
1118+
# loop till timeout or fetch not successful
11191119
while True:
11201120
if trials > timeout_limit:
11211121
break
@@ -1130,7 +1130,7 @@ def test_publish_fetch_ignore_attribute(self):
11301130
else:
11311131
raise RuntimeError(str(e))
11321132
if dataset is None:
1133-
raise ValueError("Failed to fetch uploaded dataset: {}".format(upload_did))
1133+
raise ValueError("TIMEOUT: Failed to fetch uploaded dataset - {}".format(upload_did))
11341134
self.assertEqual(dataset.ignore_attribute, ignore_attribute)
11351135

11361136
def test_create_dataset_row_id_attribute_error(self):

0 commit comments

Comments
 (0)