Skip to content

Commit 9b3c1c8

Browse files
Fix CosmosDB E2E test (#695) (#697)
1 parent 5d13213 commit 9b3c1c8

File tree

1 file changed

+1
-1
lines changed
  • test/E2E/Azure.Functions.PowerShellWorker.E2E/Azure.Functions.PowerShellWorker.E2E/Helpers

1 file changed

+1
-1
lines changed

test/E2E/Azure.Functions.PowerShellWorker.E2E/Azure.Functions.PowerShellWorker.E2E/Helpers/CosmosDBHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ await Utilities.RetryAsync(async () =>
5757
retrievedDocument = await _docDbClient.ReadDocumentAsync(docUri);
5858
return true;
5959
}
60-
catch (DocumentClientException ex) when (ex.Error.Code == "NotFound")
60+
catch (DocumentClientException ex) when (ex.Error.Code == "NotFound" || ex.Error.Code == "Not Found")
6161
{
6262
return false;
6363
}

0 commit comments

Comments
 (0)