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

apollostack / graphql-subscriptions / 61
100%

Build:
DEFAULT BRANCH: master
Ran 22 Dec 2016 12:15AM UTC
Jobs 2
Files 2
Run time 13s
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
61

Pull #29

travis-ci

web-flow
Wait on correct Promise in subscription

I'm not a Promise expert, but the previous code at least read like it was
possible for the Promise returned by subscribe to resolve once all the
this.pubsub.subscribe Promises resolved but before all of the "push onto
this.subscriptions" Promises resolved.  If unsubscribe was called too quickly,
you could in theory end up calling one of those "push" functions after the
`delete this.subscriptions[subId]` line and crashing.

In practice the old code does appear to work but this code more accurately shows
the intentions.
Pull Request #29: Wait on correct Promise in subscription

96 of 96 relevant lines covered (100.0%)

15.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 61.1 22 Dec 2016 12:15AM UTC 0
100.0
Travis Job 61.1
2 61.2 22 Dec 2016 12:15AM UTC 0
100.0
Travis Job 61.2
Source Files on build 61
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #61
  • Pull Request #29
  • PR Base - master (#59)
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