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 1a9602dCopy full SHA for 1a9602d
src/System.Private.ServiceModel/tests/Scenarios/Client/TypedClient/TypedProxyTests.4.0.0.cs
@@ -615,6 +615,10 @@ public static async Task ServiceContract_TypedProxy_Task_Call_AsyncLocal_NonCapt
615
// Force a Gen2 GC so that the WeakReference will no longer have the OperationContextExtension as a target.
616
GC.Collect(2);
617
618
+ // wait for finalizers
619
+ GC.WaitForPendingFinalizers();
620
+ GC.Collect(2);
621
+
622
// *** VALIDATE *** \\
623
Assert.Equal(requestString, result);
624
Assert.False(opContextReference.TryGetTarget(out OperationContextExtension opContext), "OperationContextExtension should have been collected");
0 commit comments