Skip to content

Commit 29d7488

Browse files
chore(spanner): wrap instance creation in retry_429 in snippets_test (#18250)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-cloud-python/issues) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent 6e0f1d9 commit 29d7488

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/google-cloud-spanner/samples/samples/snippets_test.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ def test_create_and_update_instance_default_backup_schedule_type(
216216
def test_create_instance_partition(capsys, instance_partition_instance_id):
217217
# Unable to use create_instance since it has editions set where partitions are unsupported.
218218
# The minimal requirement for editions is ENTERPRISE_PLUS for the paritions to get supported.
219-
snippets.create_instance_with_processing_units(instance_partition_instance_id, 1000)
219+
retry_429(snippets.create_instance_with_processing_units)(
220+
instance_partition_instance_id, 1000
221+
)
220222
retry_429(snippets.create_instance_partition)(
221223
instance_partition_instance_id, "my-instance-partition"
222224
)

0 commit comments

Comments
 (0)