Skip to content

Commit b12231c

Browse files
build: do not test if service is unavailable (#275)
* 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>
1 parent 71f5d44 commit b12231c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

generated,README.md/test/rollout.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,18 @@ describe('Game Server Rollout Test', () => {
162162
),
163163
};
164164

165-
const [rollout] = await deploymentClient.getGameServerDeploymentRollout(
166-
request
167-
);
165+
let rollout;
166+
try {
167+
[rollout] = await deploymentClient.getGameServerDeploymentRollout(
168+
request
169+
);
170+
} catch (err) {
171+
if (err.message.includes(/The service is currently unavailable/)) {
172+
return;
173+
}
174+
throw err;
175+
}
176+
168177
assert.strictEqual(rollout.gameServerConfigOverrides.length, 0);
169178
});
170179

0 commit comments

Comments
 (0)