Skip to content

Commit

Permalink
Lower time expectations for labby rubies, gh-104
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Aug 15, 2024
1 parent 767ef55 commit ad2c1c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# fugit credits

* https://github.com/personnumber3377, gh-104 Fugit.parse choke on long input
* Michael Scrivo, https://github.com/mscrivo, gh-103
* Benjamin Darcet, https://github.com/bdarcet gh-95 gh-96 et-orbi #rweek
* https://github.com/franckduche gh-95 gh-96 et-orbi #rweek
Expand Down
8 changes: 4 additions & 4 deletions spec/parse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
o, d = do_time {
Fugit.parse('0 0' + ' 0' * 10_000 + ' 1 jan * UTC') }

expect(o).to be(nil)
expect(d).to be < 0.042
expect(d).to be < 0.1
expect(o).to be nil
end
end

Expand Down Expand Up @@ -154,12 +154,12 @@
err
end }

expect(d).to be < 0.1

expect(r.class).to be(
ArgumentError)
expect(r.message).to eq(
'invalid cron string "0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... len 20015"')

expect(d).to be < 0.042
end
end

Expand Down

0 comments on commit ad2c1c9

Please sign in to comment.