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

ssoloff / dice-server-js / 311
100%

Build:
DEFAULT BRANCH: master
Ran 23 Dec 2016 07:15PM UTC
Jobs 1
Files 39
Run time 6min
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
311

push

travis-ci

ssoloff
Fix intermittently failing client acceptance test

The scenario "Evaluating empty expressions" in the "Evaluating dice
notation via web UI" feature was failing intermittently when run in
PhantomJS.  The root cause of the failure appears to be that the client
was submitting a blank ("") expression to the server, which caused the
error message to be displayed, thus failing the test.

It is assumed that PhantomJS is not properly honoring the "required"
attribute of the expression input field under some (as yet undetermined)
condition.  When this happens, the client submits the blank expression
to the server, and the server returns an error, which is then displayed.
This is not a race condition because, no matter how long the timeout is
increased to, the error message is always displayed and never removed.

The fix is to ensure the client never sends a falsey expression to the
server.  This serves as a second line of defense in the event the form
validation logic does not work (as happens with PhantomJS).  No
additional logic is performed to ensure the user sees a failure message
because this issue has never been observed in either Firefox or Chrome.
As it only affects PhantomJS, and PhantomJS is headless, attempting to
display some kind of feedback to the user would be pointless.

2023 of 2023 relevant lines covered (100.0%)

6.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 311.1 23 Dec 2016 07:21PM UTC 0
100.0
Travis Job 311.1
Source Files on build 311
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #311
  • a9dc58a6 on github
  • Prev Build on master (#310)
  • Next Build on master (#312)
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