Skip to content

Commit ad2c1c9

Browse files
committed
Lower time expectations for labby rubies, gh-104
1 parent 767ef55 commit ad2c1c9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CREDITS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
# fugit credits
33

4+
* https://github.com/personnumber3377, gh-104 Fugit.parse choke on long input
45
* Michael Scrivo, https://github.com/mscrivo, gh-103
56
* Benjamin Darcet, https://github.com/bdarcet gh-95 gh-96 et-orbi #rweek
67
* https://github.com/franckduche gh-95 gh-96 et-orbi #rweek

spec/parse_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@
117117
o, d = do_time {
118118
Fugit.parse('0 0' + ' 0' * 10_000 + ' 1 jan * UTC') }
119119

120-
expect(o).to be(nil)
121-
expect(d).to be < 0.042
120+
expect(d).to be < 0.1
121+
expect(o).to be nil
122122
end
123123
end
124124

@@ -154,12 +154,12 @@
154154
err
155155
end }
156156

157+
expect(d).to be < 0.1
158+
157159
expect(r.class).to be(
158160
ArgumentError)
159161
expect(r.message).to eq(
160162
'invalid cron string "0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... len 20015"')
161-
162-
expect(d).to be < 0.042
163163
end
164164
end
165165

0 commit comments

Comments
 (0)