Skip to content

Commit

Permalink
build: do not test if service is unavailable (#275)
Browse files Browse the repository at this point in the history
* 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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and NimJay committed Nov 11, 2022
1 parent 0ef94be commit 868c84b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions game-servers/snippets/test/rollout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 868c84b

Please sign in to comment.