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); });