提交 e76af37c 编写于 作者: D David Kean

Merge pull request #8976 from davkean/master

Remove EventListener crash workaround
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="CsiTests.cs" /> <Compile Include="CsiTests.cs" />
<Compile Include="EventListenerCrash_Workaround.cs" />
<Compile Include="InteractiveSessionTests.cs" /> <Compile Include="InteractiveSessionTests.cs" />
<Compile Include="ObjectFormatterTests.cs" /> <Compile Include="ObjectFormatterTests.cs" />
</ItemGroup> </ItemGroup>
......
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading;
using Xunit;
namespace Microsoft.CodeAnalysis.Scripting.Test
{
// xunit is crashing due to a bug in the CLR, see:https://github.com/dotnet/roslyn/issues/6358.
//
// This issue tends to occur more often on test binaries with
// very short running tests. This class solely exists to avoid hitting
// it, and can be deleted when more tests are added to the assembly
// or when the CLR bug is fixed.
public class EventListenerCrash_Workaround
{
[Fact]
public void WaitFor10Seconds()
{
// Wait for ten seconds
Thread.Sleep(10000);
}
}
}
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading;
using Xunit;
namespace Microsoft.CodeAnalysis.Scripting.Test
{
// xunit is crashing due to a bug in the CLR, see:https://github.com/dotnet/roslyn/issues/6358.
//
// This issue tends to occur more often on test binaries with
// very short running tests. This class solely exists to avoid hitting
// it, and can be deleted when more tests are added to the assembly
// or when the CLR bug is fixed.
public class EventListenerCrash_Workaround
{
[Fact]
public void WaitFor10Seconds()
{
// Wait for ten seconds
Thread.Sleep(10000);
}
}
}
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="EventListenerCrash_Workaround.cs" />
<Compile Include="GlobalAssemblyCacheTests.cs" /> <Compile Include="GlobalAssemblyCacheTests.cs" />
<Compile Include="MetadataShadowCopyProviderTests.cs" /> <Compile Include="MetadataShadowCopyProviderTests.cs" />
</ItemGroup> </ItemGroup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册