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

bigeasy / happenstance / 158 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 27 Jun 2018 03:38AM UTC
Files 4
Run time 0s
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

27 Jun 2018 03:28AM UTC coverage: 100.0%. Remained the same
158.1

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%)

5.04 hits per line

Source Files on job 158.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 147
  • Travis Job 158.1
  • 8d8f5a79 on github
  • Prev Job for on master (#157.2)
  • Next Job for on master (#159.1)
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

© 2026 Coveralls, Inc