• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bigeasy / happenstance / 158
100%

Build:
DEFAULT BRANCH: master
Ran 27 Jun 2018 03:38AM UTC
Jobs 3
Files 4
Run time 21s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
158

push

travis-ci

bigeasy
Remove nested event array.

Removes a race condition where calling the `Scheduler.clear` followed by
`Scheduler.schedule` from within a called to `Scheduler.check` would
case `check` to send an `unset` event before exit unsetting the timer in
`Timer` so that the schedule event would not fire. This was a race
condition because it would only occur when the `check` was called the
exact millisecond that the event was scheduled and the event scheduled
from within `check` was scheduled for the current millisecond.

The problem was that we where losing trace of the nested array of
events. Working through an array of events for the current millisecond,
but pushing events for the current millisecond onto an array held by a
newly vivified entry in the event lookup tree. We now put the event in
the tree using a compound key of the event time and the event key
(name) so that the check loop continually checks the min value in the
event tree instead of working through an array. All the functions
reference the event tree, no array to get lost to improper indirection.

35 of 35 branches covered (100.0%)

101 of 101 relevant lines covered (100.0%)

15.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 158.1 27 Jun 2018 03:38AM UTC 0
100.0
Travis Job 158.1
2 158.2 27 Jun 2018 03:38AM UTC 0
100.0
Travis Job 158.2
3 158.3 27 Jun 2018 03:38AM UTC 0
100.0
Travis Job 158.3
Source Files on build 158
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #158
  • 8d8f5a79 on github
  • Prev Build on master (#157)
  • Next Build on master (#159)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc