Skip to content

Commit c54a65e

Browse files
[release/9.0-staging] Wait to complete the test before releasing the agile reference. (#129430)
Backport of #112387 to release/9.0-staging /cc @AaronRobinsonMSFT @jkoritzinsky Closes #129421 ## Customer Impact - [ ] Customer reported - [x] Found internally This is flaky test issue that is impacting the 9.0 branch. It was fixed in 10, but missed 11. ## Regression - [ ] Yes - [x] No Flaky test. ## Testing This fix has been in 10 and 11 with no further issues. ## Risk Zero as it has no impact to the product. Co-authored-by: Jeremy Koritzinsky <jekoritz@microsoft.com>
1 parent 2178725 commit c54a65e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tests/Interop/COM/ComWrappers/API/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,7 @@ public unsafe void CrossApartmentQueryInterface_NoDeadlock()
10841084

10851085
staThread.Start();
10861086
mtaThread.Start();
1087+
testCompleted.WaitOne();
10871088
}
10881089
finally
10891090
{
@@ -1092,8 +1093,6 @@ public unsafe void CrossApartmentQueryInterface_NoDeadlock()
10921093
Marshal.Release(agileReference);
10931094
}
10941095
}
1095-
1096-
testCompleted.WaitOne();
10971096
}
10981097

10991098
[DllImport("ole32.dll")]

0 commit comments

Comments
 (0)