We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d09ce0 commit 9708605Copy full SHA for 9708605
src/System.Private.ServiceModel/tests/Scenarios/Client/TypedClient/TypedProxyTests.4.0.0.cs
@@ -613,6 +613,11 @@ public static async Task ServiceContract_TypedProxy_Task_Call_AsyncLocal_NonCapt
613
await Task.Yield();
614
615
// Force a Gen2 GC so that the WeakReference will no longer have the OperationContextExtension as a target.
616
+ //GC.Collect(2);
617
+
618
+ // Force GC and wait for finalizers
619
+ GC.Collect(2);
620
+ GC.WaitForPendingFinalizers();
621
GC.Collect(2);
622
623
// *** VALIDATE *** \\
0 commit comments