File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/System.Private.ServiceModel/tests/Scenarios/Client/TypedClient Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11
11
using Infrastructure . Common ;
12
12
using Xunit ;
13
13
14
- public partial class TypedProxyTests : ConditionalWcfTest
14
+ public static partial class TypedProxyTests
15
15
{
16
16
// ServiceContract typed proxy tests create a ChannelFactory using a provided [ServiceContract] Interface which...
17
17
// returns a generated proxy based on that Interface.
@@ -567,7 +567,6 @@ private static void ServiceContract_TypedProxy_AsyncTask_Call_TestImpl(Binding b
567
567
}
568
568
569
569
[ WcfFact ]
570
- [ Condition ( nameof ( Skip_CoreWCFService_FailedTest ) ) ]
571
570
[ OuterLoop ]
572
571
public static async Task ServiceContract_TypedProxy_Task_Call_AsyncLocal_NonCapture ( )
573
572
{
@@ -594,6 +593,9 @@ public static async Task ServiceContract_TypedProxy_Task_Call_AsyncLocal_NonCapt
594
593
// *** EXECUTE *** \\
595
594
var opExtension = new OperationContextExtension ( ) ;
596
595
opContextReference = new WeakReference < OperationContextExtension > ( opExtension ) ;
596
+
597
+ // force ExecutionContext to capture the null OperationContext
598
+ await Task . Yield ( ) ;
597
599
using ( new OperationContextScope ( ( IContextChannel ) serviceProxy ) )
598
600
{
599
601
OperationContext . Current . Extensions . Add ( opExtension ) ;
Original file line number Diff line number Diff line change 13
13
using Infrastructure . Common ;
14
14
using Xunit ;
15
15
16
- public partial class TypedProxyTests
16
+ public static partial class TypedProxyTests
17
17
{
18
18
[ WcfFact ]
19
19
[ OuterLoop ]
You can’t perform that action at this time.
0 commit comments