Skip to content

Commit

Permalink
Add retry to flaky test
Browse files Browse the repository at this point in the history
Add retry to test that's flaky.
  • Loading branch information
martincostello committed Sep 8, 2023
1 parent fb119c4 commit a470061
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<PackageVersion Include="Shouldly" Version="4.2.1" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.507" />
<PackageVersion Include="System.Text.Json" Version="7.0.3" />
<PackageVersion Include="xRetry" Version="1.9.0" />
<PackageVersion Include="xunit" Version="2.5.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.0" />
<PackageVersion Include="Xunit.SkippableFact" Version="1.4.13" />
Expand Down
2 changes: 1 addition & 1 deletion test/LondonTravel.Skill.Tests/EndToEndTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public EndToEndTests(ITestOutputHelper outputHelper)
{
}

[Fact]
[xRetry.RetryFact]
public async Task Alexa_Function_Can_Process_Request()
{
// Arrange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<PackageReference Include="MartinCostello.Testing.AwsLambdaTestServer" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Shouldly" />
<PackageReference Include="xRetry" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio" />
</ItemGroup>
Expand Down

0 comments on commit a470061

Please sign in to comment.