Skip to content

Commit 343381c

Browse files
committed
add smoke test for StackExchange.Redis stack overflow exception
1 parent 00550d0 commit 343381c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

docker/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ for config in Debug Release ; do
2020

2121
dotnet publish -f netcoreapp2.1 -c $config reproductions/HttpMessageHandler.StackOverflowException/HttpMessageHandler.StackOverflowException.csproj
2222

23+
dotnet publish -f netcoreapp2.1 -c $config reproductions/StackExchange.Redis.StackOverflowException/StackExchange.Redis.StackOverflowException.csproj
24+
2325
dotnet msbuild Datadog.Trace.proj -t:RestoreAndBuildSamplesForPackageVersions
2426

2527
for proj in Datadog.Trace.ClrProfiler.IntegrationTests ; do
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using Datadog.Trace.TestHelpers;
2+
using Xunit;
3+
using Xunit.Abstractions;
4+
5+
namespace Datadog.Trace.ClrProfiler.IntegrationTests.SmokeTests
6+
{
7+
public class StackExchangeRedisStackOverflowExceptionSmokeTest : SmokeTestBase
8+
{
9+
public StackExchangeRedisStackOverflowExceptionSmokeTest(ITestOutputHelper output)
10+
: base(output, "StackExchange.Redis.StackOverflowException", maxTestRunSeconds: 15)
11+
{
12+
}
13+
14+
[Fact]
15+
[Trait("Category", "Smoke")]
16+
public void NoExceptions()
17+
{
18+
if (!EnvironmentHelper.IsCoreClr())
19+
{
20+
Output.WriteLine("Ignored for .NET Framework");
21+
return;
22+
}
23+
24+
CheckForSmoke();
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)