Skip to content

Commit 11a1fa5

Browse files
committed
Execute test inside lock.
1 parent 1795ea2 commit 11a1fa5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/Magick.NET.Tests/MagickNETTests/TheLogEvent.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@ public class TheLogEvent
2323
[Fact]
2424
public void ShouldPassOrderedTests()
2525
{
26-
ShouldNotCallLogDelegeteWhenLogEventsAreNotSet();
26+
TestHelper.ExecuteInsideLock(() =>
27+
{
28+
ShouldNotCallLogDelegeteWhenLogEventsAreNotSet();
2729

28-
ShouldCallLogDelegateWhenLogEventsAreSet();
30+
ShouldCallLogDelegateWhenLogEventsAreSet();
2931

30-
ShouldLogTraceEventsWhenLogEventsIsSetToAll();
32+
ShouldLogTraceEventsWhenLogEventsIsSetToAll();
3133

32-
ShouldStopCallingLogDelegateWhenLogDelegateIsRemoved();
34+
ShouldStopCallingLogDelegateWhenLogDelegateIsRemoved();
35+
});
3336
}
3437

3538
private void ShouldNotCallLogDelegeteWhenLogEventsAreNotSet()

0 commit comments

Comments
 (0)