mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
#8341 raise tolerance in timestamp_spec.rb tests
Fixes #8342 Fixes #8346
This commit is contained in:
parent
e03b25bf94
commit
6ef8427eb2
1 changed files with 2 additions and 2 deletions
|
@ -7,10 +7,10 @@ describe LogStash::Timestamp do
|
|||
context "constructors" do
|
||||
it "should work" do
|
||||
t = LogStash::Timestamp.new
|
||||
expect(t.time.to_i).to be_within(1).of Time.now.to_i
|
||||
expect(t.time.to_i).to be_within(2).of Time.now.to_i
|
||||
|
||||
t = LogStash::Timestamp.now
|
||||
expect(t.time.to_i).to be_within(1).of Time.now.to_i
|
||||
expect(t.time.to_i).to be_within(2).of Time.now.to_i
|
||||
|
||||
now = Time.now.utc
|
||||
t = LogStash::Timestamp.new(now)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue