From 189fb360ad8fa5d99abcb9f28a12dc9fce303854 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 --- game-servers/snippets/test/rollout.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/game-servers/snippets/test/rollout.js b/game-servers/snippets/test/rollout.js index 975a78f936..c2bbb53c35 100644 --- a/game-servers/snippets/test/rollout.js +++ b/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); });