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
sofisl and gcf-owl-bot[bot] authored Jul 12, 2022
1 parent 71f5d44 commit b12231c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions generated,README.md/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 b12231c

Please sign in to comment.