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

apollostack / graphql-subscriptions
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: neophi-async-filter
DEFAULT BRANCH: master
Repo Added 06 Sep 2016 10:05PM UTC
Files 2
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

LAST BUILD ON BRANCH glasser/sub-promises
branch: glasser/sub-promises
CHANGE BRANCH
x
Reset
  • glasser/sub-promises
  • designs
  • helfer-patch-1
  • master
  • neophi-async-filter
  • v0.1.1
  • v0.1.2
  • v0.1.3
  • v0.1.4
  • v0.1.5
  • v0.2.0
  • v0.2.1
  • v0.2.2
  • v0.2.3

pending completion
60

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

15.38 hits per line

Relevant lines Covered
Build:
Build:
96 RELEVANT LINES 96 COVERED LINES
15.38 HITS PER LINE
Source Files on glasser/sub-promises
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
60 glasser/sub-promises 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 22 Dec 2016 12:14AM UTC glasser travis-ci pending completion  
See All Builds (71)
  • Repo 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

© 2025 Coveralls, Inc