Skip to content

Commit

Permalink
Fix trigger test case to round-off
Browse files Browse the repository at this point in the history
  • Loading branch information
pcnfernando committed Jan 3, 2020
1 parent fe5169b commit 9063380
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void receive(Event[] events) {
count++;
if (count > 1) {
float triggerTimeDiff = timestamp / 1000 - lastTimeStamp / 1000;
AssertJUnit.assertTrue(1.0f == triggerTimeDiff);
AssertJUnit.assertTrue(1 == Math.round(triggerTimeDiff));
}
lastTimeStamp = timestamp;
}
Expand Down

0 comments on commit 9063380

Please sign in to comment.