Skip to content

Commit 6010573

Browse files
committed
instance_data to to type dev
1 parent 56b4d69 commit 6010573

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bigtable/tests/system.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def _retry_on_unavailable(exc):
9494

9595
def setUpModule():
9696
from google.cloud.exceptions import GrpcRendezvous
97+
from google.cloud.bigtable.enums import Instance
9798

9899
Config.IN_EMULATOR = os.getenv(BIGTABLE_EMULATOR) is not None
99100

@@ -107,9 +108,10 @@ def setUpModule():
107108
Config.CLUSTER = Config.INSTANCE.cluster(
108109
CLUSTER_ID, location_id=LOCATION_ID, serve_nodes=SERVE_NODES)
109110
Config.INSTANCE_DATA = Config.CLIENT.instance(
110-
INSTANCE_ID_DATA, labels=LABELS)
111+
INSTANCE_ID_DATA, instance_type=Instance.Type.DEVELOPMENT,
112+
labels=LABELS)
111113
Config.CLUSTER_DATA = Config.INSTANCE_DATA.cluster(
112-
CLUSTER_ID_DATA, location_id=LOCATION_ID, serve_nodes=SERVE_NODES)
114+
CLUSTER_ID_DATA, location_id=LOCATION_ID)
113115

114116
if not Config.IN_EMULATOR:
115117
retry = RetryErrors(GrpcRendezvous, error_predicate=_retry_on_unavailable)

0 commit comments

Comments
 (0)