OSDN Git Service
(root)
/
opentween
/
open-tween.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc9f64e
)
OTBaseForm.InvokeAsyncに対するテストがMono環境でデッドロックする問題を回避
author
Kimura Youichi
<kim.upsilon@bucyou.net>
Sat, 17 Sep 2016 21:19:52 +0000
(06:19 +0900)
committer
Kimura Youichi
<kim.upsilon@bucyou.net>
Sat, 17 Sep 2016 21:53:18 +0000
(06:53 +0900)
Fixes:
586b43f2
("OTBaseForm.InvokeAsyncメソッドをなるべく使用する")
OpenTween.Tests/OTBaseFormTest.cs
patch
|
blob
|
history
diff --git
a/OpenTween.Tests/OTBaseFormTest.cs
b/OpenTween.Tests/OTBaseFormTest.cs
index
036c91b
..
133c811
100644
(file)
--- a/
OpenTween.Tests/OTBaseFormTest.cs
+++ b/
OpenTween.Tests/OTBaseFormTest.cs
@@
-34,6
+34,16
@@
namespace OpenTween
{
private class TestForm : OTBaseForm { }
+ public OTBaseFormTest()
+ {
+ this.SetupSynchronizationContext();
+ }
+
+ protected void SetupSynchronizationContext()
+ {
+ WindowsFormsSynchronizationContext.AutoInstall = false;
+ }
+
[Fact]
public async Task InvokeAsync_Test()
{