Skip to content

Commit

Permalink
Merge pull request #751 from microsoftgraph/dependabot/nuget/xunit-2.6.0
Browse files Browse the repository at this point in the history
Bump xunit from 2.5.3 to 2.6.0
  • Loading branch information
andrueastman authored Nov 2, 2023
2 parents ba74729 + 6a5728f commit bc1853e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="Moq" Version="4.20.69" />
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit" Version="2.6.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServiceException>(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<ServiceException>(() => 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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public async System.Threading.Tasks.Task AddAsync_IdRequired()
).Returns(new JsonSerializationWriter());


await Assert.ThrowsAsync<ODataError>(async () => await graphServiceClient.Groups["groupId"].Members.Ref.PostAsync(userToCreate));
await Assert.ThrowsAsync<ODataError>(() => graphServiceClient.Groups["groupId"].Members.Ref.PostAsync(userToCreate));

}

Expand Down

0 comments on commit bc1853e

Please sign in to comment.