Skip to content

Commit 80029eb

Browse files
authored
ci: add kokoro change to synth.py (#104)
* ci: add kokoro change to synth.py * skip test that fails when tests are run in parallel * fix lint errors Co-authored-by: larkee <[email protected]>
1 parent 8a3f8ca commit 80029eb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

synth.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,12 @@
163163
"include google/cloud/spanner_v1/gapic/transports/spanner.grpc.config\n",
164164
)
165165

166+
s.replace(
167+
".kokoro/build.sh",
168+
"# Remove old nox",
169+
"# Set up creating a new instance for each system test run\n"
170+
"export GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE=true\n"
171+
"\n\g<0>",
172+
)
173+
166174
s.shell.run(["nox", "-s", "blacken"], hide_output=False)

tests/system/test_system.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ def tearDown(self):
143143
for instance in self.instances_to_delete:
144144
instance.delete()
145145

146+
@unittest.skipIf(
147+
CREATE_INSTANCE, "This test fails when system tests are run in parallel."
148+
)
146149
def test_list_instances(self):
147150
instances = list(Config.CLIENT.list_instances())
148151
# We have added one new instance in `setUpModule`.

0 commit comments

Comments
 (0)