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

preaction / Mercury / 31
97%

Build:
DEFAULT BRANCH: master
Ran 09 Oct 2015 12:27AM UTC
Jobs 1
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

pending completion
31

push

travis-ci

preaction
fix test failure when re-using Test::Mojo object

The Test::Mojo object, when used in WebSocket mode, stores some state
about the WebSocket to create some blocking loops, running the event
loop until an action is completed (like closing the socket).

This is a problem when we swap out the transaction in a given Test::Mojo
object: The state of the Test::Mojo object does not match the state of
the inner transaction, causing unexpected consequences.

This revealed itself when we closed a push/pull socket halfway through
the test, to ensure the round-robin was happening correctly. The next
message test would fail because the message was not yet sent.

The solution is to have a single app object, and multiple Test::Mojo
objects that all share the same app. The Test::Mojo object is used for
the duration of that socket.

Fixes #18

127 of 127 relevant lines covered (100.0%)

4.35 hits per line

Jobs
ID Job ID Ran Files Coverage
9 31.9 (COVERAGE=1) 09 Oct 2015 12:27AM UTC 0
100.0
Travis Job 31.9
Source Files on build 31
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #31
  • 381c93d9 on github
  • Prev Build on master (#30)
  • Next Build on master (#32)
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