Skip to content

Commit 368f7e7

Browse files
committed
Removed unsupported test cases
1 parent 9ef244b commit 368f7e7

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Orm/Xtensive.Orm.Tests.Core/DotNetFramework/ThreadingTest.cs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
1+
// Copyright (C) 2008-2021 Xtensive LLC.
22
// All rights reserved.
33
// For conditions of distribution and use, see license.
44
// Created by: Alex Yakunin
@@ -162,6 +162,7 @@ public void ExecuteInvokeAsync(object argument)
162162
Thread thread = Thread.CurrentThread;
163163
using (new Measurement("Execute", log ? MeasurementOptions.Log : 0, passCount))
164164
for (int j = 0; j < passCount; j++) {
165+
165166
IAsyncResult r = d.BeginInvoke(null, null);
166167
d.EndInvoke(r);
167168
}
@@ -197,12 +198,14 @@ private void Test(double speedFactor)
197198
LockTest(sf, 256);
198199
LockTest(sf, 1024);
199200
}
200-
InvokeAsyncTest(sf, 1);
201-
if (!warmup) {
202-
InvokeAsyncTest(sf, 2);
203-
InvokeAsyncTest(sf, 4);
204-
InvokeAsyncTest(sf, 8);
205-
}
201+
// Commented out due to lack of support for BeginInvoke/EndInvoke
202+
// and using tasks and async/await is probably what original purpose of the test
203+
//InvokeAsyncTest(sf, 1);
204+
//if (!warmup) {
205+
// InvokeAsyncTest(sf, 2);
206+
// InvokeAsyncTest(sf, 4);
207+
// InvokeAsyncTest(sf, 8);
208+
//}
206209
}
207210
}
208211

0 commit comments

Comments
 (0)