Skip to content

Commit ae56e6d

Browse files
jiangzeng01sywhang
authored andcommitted
Fix ContentionEvents test to make it more stable (#683)
1 parent 32bfa67 commit ae56e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/eventpipe/ContentionEvents.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ await RemoteTestExecutorHelper.RunTestCaseAsync(() =>
7777
Logger.logger.Log("Event counts validation");
7878
Logger.logger.Log("ContentionStartEvents: " + ContentionStartEvents);
7979
Logger.logger.Log("ContentionStopEvents: " + ContentionStopEvents);
80-
return ContentionStartEvents >= 50 && ContentionStopEvents >= 50 ? 100 : -1;
80+
return ContentionStartEvents > 0 && ContentionStopEvents > 0 ? 100 : -1;
8181
};
8282
};
8383
var config = new SessionConfiguration(circularBufferSizeMB: (uint)Math.Pow(2, 10), format: EventPipeSerializationFormat.NetTrace, providers: providers);

0 commit comments

Comments
 (0)