Skip to content

Commit eb91504

Browse files
authored
Fix Cosmos e2e test (#457)
1 parent b7834a1 commit eb91504

File tree

1 file changed

+1
-1
lines changed
  • test/end-to-end/Azure.Functions.NodejsWorker.E2E/Azure.Functions.NodejsWorker.E2E/Helpers

1 file changed

+1
-1
lines changed

test/end-to-end/Azure.Functions.NodejsWorker.E2E/Azure.Functions.NodejsWorker.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, new RequestOptions { PartitionKey = new PartitionKey(docId) });
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)