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

stripe / stripe-ruby / 3457
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 01 Oct 2019 04:53PM CUT
Jobs 5
Files 388
Run time 3min
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
3457

push

travis-ci

brandur
Move to monotonic time for duration calculations

Drops the use of `Time.now` in favor of using the system's monotonic
clock for various operations that calculate and use elapsed duration.
The latter is preferable because in some cases `Time.now` can be
unstable, like if it's set manually by a system administrator or an NTP
daemon.

I don't expect that the previous code would actually have caused trouble
in the vast majority of normal situations, so I'm not going to backport
anything, but this seems like good hygiene.

For better or worse I had to wrap the monotonic time calls in a new
`Util` function because (1) the normal invocation is long enough to have
caused a lot of overruns on our 80 character line lengths, and (2)
Timecop doesn't stub the monotonic clock, so the `Util` method gives us
a nice place that we can stub on where necessary.

7662 of 7970 relevant lines covered (96.14%)

2381.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3457.1 (2.3) 01 Oct 2019 04:53PM CUT 0
96.19
Travis Job 3457.1
2 3457.2 (2.4) 01 Oct 2019 04:53PM CUT 0
96.19
Travis Job 3457.2
3 3457.3 (2.5) 01 Oct 2019 04:53PM CUT 0
96.19
Travis Job 3457.3
4 3457.4 (2.6) 01 Oct 2019 04:53PM CUT 0
96.16
Travis Job 3457.4
5 3457.5 (jruby-9.2.7.0) 01 Oct 2019 04:56PM CUT 0
0.0
Travis Job 3457.5
Source Files on build 3457
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
No data available in table
Showing 0 to 0 of 0 entries
  • Previous
  • Next
  • Back to Repo
  • Travis Build #3457
  • 6e3e684c 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