Skip to content

Commit

Permalink
Merge pull request #3374 from arunans23/fix-tests
Browse files Browse the repository at this point in the history
Improve the stability of the ElasticStatisticsTest
  • Loading branch information
arunans23 authored Jun 25, 2024
2 parents 4da2143 + bb35f0d commit 0d5f87a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,9 @@ private PublishingEvent createPublishingEvent(ComponentType componentType, Strin
event.setComponentType(StatisticsConstants.getComponentTypeToString(componentType));
event.setFlowId(TEST_FLOW_ID);
event.setComponentName(componentName);
event.setStartTime(Instant.now().toEpochMilli() - STATIC_LATENCY);
event.setEndTime(Instant.now().toEpochMilli());
long currentTime = Instant.now().toEpochMilli();
event.setStartTime(currentTime - STATIC_LATENCY);
event.setEndTime(currentTime);
event.setDuration(event.getEndTime() - event.getStartTime());
event.setEntryPoint("EP");
event.setFaultCount(0);
Expand Down

0 comments on commit 0d5f87a

Please sign in to comment.