Skip to content

Commit

Permalink
fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Matsuo committed Apr 22, 2020
1 parent aaff0be commit 56ad4b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions datalabeling/label_image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def dataset():
# create a temporary dataset
dataset = testing_lib.create_dataset(PROJECT_ID)

testing_lib.import_data(dataset.name, 'IMAGE', INPUT_GCS_URI)
yield dataset

# tear down
Expand Down
2 changes: 2 additions & 0 deletions datalabeling/testing_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def delete_instruction(name):

@backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE)
def cancel_operation(name):
if not name:
return
client = create_client()
client.transport._operations_client.cancel_operation(name)

Expand Down

0 comments on commit 56ad4b4

Please sign in to comment.