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

raiden-network / raiden / 4364 / 1
36%
master: 36%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2018 01:19PM UTC
Files 74
Run time 3s
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

05 Apr 2018 01:14PM UTC coverage: 60.002% (-0.1%) from 60.102%
TEST_TYPE='unit'

push

travis-ci

LefterisJP
Fix race condition for event handling

The `RaidenAPI` calls `RaidenService.poll_blockchain_events` explicitely to
ensure that a transaction recently mined has all the events processed.
This is to update the node state and ensure the user of `RaidenAPI` will
see the expected effects applied.

The problem is that the `AlarmTask` can race with the transaction polling,
and *if* the event handler context-switches the effects may not be
applied once the `RaidenAPI` call returns. The introduced lock will
serialize all calls to `poll_blockchain_events`, forcing the `RaidenAPI`
to wait until the `AlarmTask` finish processing the events.

Note: This change will break if the events are *not* processed in the
`AlarmTask` greenlet.

889 of 2090 branches covered (42.54%)

Branch coverage included in aggregate %.

4660 of 7158 relevant lines covered (65.1%)

0.65 hits per line

Source Files on job 4364.1 (TEST_TYPE='unit')
  • Tree
  • List 0
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1
  • Travis Job 4364.1
  • 3686b327 on github
  • Prev Job for TEST_TYPE='unit' on master (#4363.1)
  • Next Job for TEST_TYPE='unit' on master (#4377.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