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

httprb / http / 1722
94%

Build:
DEFAULT BRANCH: master
Ran 16 Dec 2019 01:24PM UTC
Jobs 1
Files 33
Run time 3s
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
1722

push

travis-ci

ixti
Duplicate options Hash in .timeout call

When `Hash` is passed to HTTP.timeout, it's been mutated. So when you pass
a frozen `Hash` it raises an exception.

Here is an example of the code:
```
timeout_settings = { connect: 5, write: 2, read: 10 }.freeze
HTTP.timeout(timeout_settings).get('http://example.com')
```

In this change, I have added a call to .dup on options Hash to create a
copy and avoid mutation of original Hash.

1335 of 1406 relevant lines covered (94.95%)

110.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1722.1 (jruby-9.2.5.0, JRUBY_OPTS="$JRUBY_OPTS --debug") 16 Dec 2019 01:24PM UTC 0
94.95
Travis Job 1722.1
Source Files on build 1722
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1722
  • 7ce201eb on github
  • Prev Build on master (#1709)
  • Next Build on master (#1732)
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