Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
alkatrivedi committed Sep 17, 2024
1 parent 24aa690 commit f49637f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/samples/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def create_instance(instance_id):
"sample_name": "snippets-create_instance-explicit",
"created": str(int(time.time())),
},
edition=spanner_instance_admin.Instance.Edition.ENTERPRISE_PLUS, # Optional
edition=spanner_instance_admin.Instance.Edition.STANDARD, # Optional
),
)

Expand Down
4 changes: 3 additions & 1 deletion samples/samples/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ def test_create_instance_with_autoscaling_config(capsys, lci_instance_id):


def test_create_instance_partition(capsys, instance_partition_instance_id):
snippets.create_instance(instance_partition_instance_id)
# Unable to use create_instance since it has editions set where partitions are unsupported.
# The minimal requirement for editions is ENTERPRISE_PLUS for the paritions to get supported.
snippets.create_instance_with_processing_units(instance_partition_instance_id, 1000)
retry_429(snippets.create_instance_partition)(
instance_partition_instance_id, "my-instance-partition"
)
Expand Down

0 comments on commit f49637f

Please sign in to comment.