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

salesforce / refocus / 9608
89%

Build:
DEFAULT BRANCH: master
Ran 19 Jun 2019 08:46PM UTC
Jobs 1
Files 163
Run time 12s
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
9608

push

travis-ci

jgraff2
Add more publish tests for real-time events (#1186)

* Add publish tests for sample real-time events
Fix bugs found while testing (!!!)

Use redis publishAsync and always call publishObject expecting a
promise to be returned.
In samples api controller, always call publish inside the promise chain.
Fix the sampleStoreTimeout so it publishes sample update.
Stop double-publishing sample delete events when an aspect is deleted.
In subject db model, always call publish inside the promise chain.

* Add publish tests for real-time events for botActions, botData

Fix bugs found while testing.

When deleting botData, explicitly add something to the "changedKeys"
array, otherwise the prepareToPublish fn determines that there's nothing
to publish, so we were not emitting an event.

* Mostly just scaffolding for publish tests for rooms

* fixes from comments
remove console.log from botActions test
add test for editing an aspect without modifying tags
add test for verifying sample events when deleting subject (not covered by subject publish tests)
when editing subject tags, we were just sending subj delete and add events, but no sample delete event - added that now, and added test for it

* fixes from comments
remove console.log from botActions test
add test for editing an aspect without modifying tags
add test for verifying sample events when deleting subject (not covered by subject publish tests)
when editing subject tags, we were just sending subj delete and add events, but no sample delete event - added that now, and added test for it
moved the publish from the sample timeout clock job to the function which actually implements the timeout for consistency and testability

2875 of 3667 branches covered (78.4%)

46 of 46 new or added lines in 6 files covered. (100.0%)

7735 of 8827 relevant lines covered (87.63%)

624.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9608.1 19 Jun 2019 08:46PM UTC 0
87.63
Travis Job 9608.1
Source Files on build 9608
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9608
  • ccbf80a8 on github
  • Prev Build on master (#9607)
  • Next Build on master (#9614)
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