提交 c9ec06e1 编写于 作者: A Andrew Casey

Work around EventListener crash

...by ensuring that these assemblies take at least 10 seconds to run.

TODO: revert this change.

NOTE: the usual workaround - disabling appdomain creation in xunit -
doesn't work in this case because of assembly loading issues.  See #7976
for details.
上级 92c87247
......@@ -1183,6 +1183,14 @@ public void SubmissionResult_PrintingVoid()
Assert.Equal("", output);
}
// TODO (https://github.com/dotnet/roslyn/issues/7976): delete this
[WorkItem(7976, "https://github.com/dotnet/roslyn/issues/7976")]
[Fact]
public void Workaround7976()
{
Thread.Sleep(TimeSpan.FromSeconds(10));
}
#endregion
private static ImmutableArray<string> SplitLines(string text)
......
......@@ -1088,6 +1088,14 @@ public void TypeCharWithUndoRedo()
Assert.Equal("> xyz", GetTextFromCurrentSnapshot());
}
// TODO (https://github.com/dotnet/roslyn/issues/7976): delete this
[WorkItem(7976, "https://github.com/dotnet/roslyn/issues/7976")]
[WpfFact]
public void Workaround7976()
{
Thread.Sleep(TimeSpan.FromSeconds(10));
}
private string GetTextFromCurrentSnapshot()
{
return Window.TextView.TextBuffer.CurrentSnapshot.GetText();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册