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

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

Build:
Build:
LAST BUILD BRANCH: neophi-async-filter
DEFAULT BRANCH: master
Ran 22 Dec 2016 12:14AM 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:11AM UTC coverage: 100.0%. First build
60.2

push

travis-ci

glasser
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.

96 of 96 relevant lines covered (100.0%)

7.69 hits per line

Source Files on job 60.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 60
  • Travis Job 60.2
  • af3dfef4 on github
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