File tree Expand file tree Collapse file tree
packages/google-cloud-bigquery/tests/unit/job Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515from unittest import mock
1616
1717import google .api_core .retry
18+ import google .cloud .bigquery .job
1819from google .api_core import exceptions
1920
2021from . import helpers
21- import google .cloud .bigquery .job
22-
2322
2423PROJECT = "test-project"
2524JOB_ID = "test-job-id"
@@ -110,7 +109,7 @@ def test_result_w_retry_wo_state(global_time_lock):
110109 predicate = custom_predicate ,
111110 initial = 0.001 ,
112111 maximum = 0.001 ,
113- deadline = 0.1 ,
112+ deadline = 1.0 ,
114113 )
115114 assert job .result (retry = custom_retry ) is job
116115
Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14+ import concurrent .futures
1415from unittest import mock
1516
16- import concurrent .futures
1717import freezegun
18- from google .api_core import exceptions
1918import google .api_core .retry
2019import pytest
21-
20+ from google . api_core import exceptions
2221from google .cloud .bigquery .client import _MIN_GET_QUERY_RESULTS_TIMEOUT
2322from google .cloud .bigquery .job import QueryJob
2423from google .cloud .bigquery .retry import DEFAULT_GET_JOB_TIMEOUT
2726from ..helpers import make_connection
2827from .helpers import _make_client
2928
30-
3129PROJECT = "test-project"
3230JOB_ID = "test-job-id"
3331QUERY = "select count(*) from persons"
@@ -105,7 +103,7 @@ def test_result_w_custom_retry(global_time_lock):
105103 initial = 0.001 ,
106104 maximum = 0.001 ,
107105 multiplier = 1.0 ,
108- deadline = 0.1 ,
106+ deadline = 1.0 ,
109107 predicate = custom_predicate ,
110108 )
111109
You can’t perform that action at this time.
0 commit comments