Skip to content

Commit 4ad6b16

Browse files
committed
one last try
1 parent 477ee9a commit 4ad6b16

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/Credentials/ExternalAccountCredentialsTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,10 @@ public function testExecutableCredentialSourceEnvironmentVars()
597597
'id_token' => 'abc',
598598
'expiration_time' => time() + 100,
599599
]);
600+
601+
if (PHP_OS_FAMILY === 'Windows') {
602+
$successJson = str_replace('"', '\"', $successJson);
603+
}
600604
$command = sprintf(
601605
'echo $GOOGLE_EXTERNAL_ACCOUNT_AUDIENCE,$GOOGLE_EXTERNAL_ACCOUNT_TOKEN_TYPE,%s > %s' .
602606
' && echo \'%s\' > $GOOGLE_EXTERNAL_ACCOUNT_OUTPUT_FILE' .

0 commit comments

Comments
 (0)