From 131b91ce2221aec66c1287ad4aa37f313156ba2a Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Tue, 12 Jul 2022 13:32:03 -0700 Subject: [PATCH] build: do not test if service is unavailable (#275) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build: do not test if service is unavailable * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- cloud-game-servers/snippets/test/rollout.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/cloud-game-servers/snippets/test/rollout.js b/cloud-game-servers/snippets/test/rollout.js index 975a78f936..c2bbb53c35 100644 --- a/cloud-game-servers/snippets/test/rollout.js +++ b/cloud-game-servers/snippets/test/rollout.js @@ -162,9 +162,18 @@ describe('Game Server Rollout Test', () => { ), }; - const [rollout] = await deploymentClient.getGameServerDeploymentRollout( - request - ); + let rollout; + try { + [rollout] = await deploymentClient.getGameServerDeploymentRollout( + request + ); + } catch (err) { + if (err.message.includes(/The service is currently unavailable/)) { + return; + } + throw err; + } + assert.strictEqual(rollout.gameServerConfigOverrides.length, 0); });