| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -381,6 +381,7 @@ def test_load_table_from_local_file_then_dump_table(self): | |||
| 381 | 381 | ) | |
| 382 | 382 | ||
| 383 | 383 | # Retry until done. | |
| 384 | + job.result() | ||
| 384 | 385 | retry = RetryInstanceState(_job_done, max_tries=8) | |
| 385 | 386 | retry(job.reload)() | |
| 386 | 387 | ||
@@ -419,6 +420,7 @@ def test_load_table_from_local_avro_file_then_dump_table(self): | |||
| 419 | 420 | ) | |
| 420 | 421 | ||
| 421 | 422 | # Retry until done. | |
| 423 | + job.result() | ||
| 422 | 424 | retry = RetryInstanceState(_job_done, max_tries=8) | |
| 423 | 425 | retry(job.reload)() | |
| 424 | 426 | ||
@@ -770,6 +772,7 @@ def _load_table_for_dml(self, rows, dataset_name, table_name): | |||
| 770 | 772 | ) | |
| 771 | 773 | ||
| 772 | 774 | # Retry until done. | |
| 775 | + job.result() | ||
| 773 | 776 | retry = RetryInstanceState(_job_done, max_tries=8) | |
| 774 | 777 | retry(job.reload)() | |
| 775 | 778 | self._fetch_single_page(table) | |
@@ -799,7 +802,9 @@ def test_dbapi_w_dml(self): | |||
| 799 | 802 | WHERE greeting = 'Hello World' | |
| 800 | 803 | """ | |
| 801 | 804 | ||
| 802 | - Config.CURSOR.execute(query_template.format(dataset_name, table_name)) | ||
| 805 | + Config.CURSOR.execute( | ||
| 806 | + query_template.format(dataset_name, table_name), | ||
| 807 | + job_id='test_dbapi_w_dml_{}'.format(str(uuid.uuid4()))) | ||
| 803 | 808 | self.assertEqual(Config.CURSOR.rowcount, 1) | |
| 804 | 809 | self.assertIsNone(Config.CURSOR.fetchone()) | |
| 805 | 810 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments