Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix incorrect assert in AbandonExisting test case
* Handle the case where the "notAbandonedWait" event is not signaled
  • Loading branch information
uweigand committed Jul 6, 2021
commit 98c17f889f4a8f4402c0a91d9e0c4756d8d0ab64
2 changes: 1 addition & 1 deletion src/libraries/System.Threading/tests/MutexTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public void AbandonExisting(
}
else
{
Assert.True(m2Index < notAbandonedWaitIndex);
Assert.True(!isNotAbandonedWaitObjectSignaled || m2Index < notAbandonedWaitIndex);
Assert.Equal(m2Index, ame.MutexIndex);
}

Expand Down