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

apollostack / graphql-subscriptions / 61 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 22 Dec 2016 12:15AM UTC
Files 2
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

22 Dec 2016 12:14AM UTC coverage: 100.0%. Remained the same
61.2

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

7.69 hits per line

Source Files on job 61.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 61
  • Travis Job 61.2
  • b94ab27b on github
  • Prev Job for on master (#59.2)
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