From ed83df0e9c11a8140304b42b31f6545b155d6da4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Nov 2023 10:56:23 +0000 Subject: [PATCH 1/2] Bump xunit from 2.5.3 to 2.6.0 Bumps [xunit](https://github.com/xunit/xunit) from 2.5.3 to 2.6.0. - [Commits](https://github.com/xunit/xunit/compare/2.5.3...2.6.0) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .../Microsoft.Graph.DotnetCore.Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj b/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj index b8befa590a5..a5fbdcb4937 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj +++ b/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj @@ -18,7 +18,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From 2298a23a658177d79be2e043d1d3ab4c5b526325 Mon Sep 17 00:00:00 2001 From: "Andrew Omondi (from Dev Box)" Date: Thu, 2 Nov 2023 09:05:27 +0300 Subject: [PATCH 2/2] Fixes failing tests --- .../Requests/Functional/ErrorTests.cs | 2 +- .../Requests/Generated/CollectionReferencesRequestTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ErrorTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ErrorTests.cs index d76474dcab1..1389f830a43 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ErrorTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ErrorTests.cs @@ -11,7 +11,7 @@ public async Task ErrorThrottlingError() // To get a throttling error, I mocked up a 429 response in a text file and turned on the Fiddler // autoresponder to return the text file as the response envelope. The autoresponder for this // scenario responds to EXACT:https://graph.microsoft.com/v1.0/groups/036bd54c-c6e5-43eb-b8b5-03e019e75bd1 - ServiceException e = await Assert.ThrowsAsync(async () => await graphClient.Groups["036bd54c-c6e5-43eb-b8b5-03e019e75bd1"].GetAsync(requestConfiguration => requestConfiguration.Headers.Add("client-request-id", "dddddddd-dddd-dddd-dddd-dddddddddddd"))); + ServiceException e = await Assert.ThrowsAsync(() => graphClient.Groups["036bd54c-c6e5-43eb-b8b5-03e019e75bd1"].GetAsync(requestConfiguration => requestConfiguration.Headers.Add("client-request-id", "dddddddd-dddd-dddd-dddd-dddddddddddd"))); Assert.Contains("tooManyRetries", e.Message); } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Generated/CollectionReferencesRequestTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Generated/CollectionReferencesRequestTests.cs index d137991697e..be8c84db11f 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Generated/CollectionReferencesRequestTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Generated/CollectionReferencesRequestTests.cs @@ -78,7 +78,7 @@ public async System.Threading.Tasks.Task AddAsync_IdRequired() ).Returns(new JsonSerializationWriter()); - await Assert.ThrowsAsync(async () => await graphServiceClient.Groups["groupId"].Members.Ref.PostAsync(userToCreate)); + await Assert.ThrowsAsync(() => graphServiceClient.Groups["groupId"].Members.Ref.PostAsync(userToCreate)); }