Skip to content

Commit

Permalink
No need to slow tests down this much
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusRich committed Sep 7, 2023
1 parent 134122d commit 210288c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/gold_miner/blog_post_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def summarize(message)
GoldMiner::Slack::Message.new(text: "TIL 1", author: author1, permalink: "http://permalink-1.com"),
GoldMiner::Slack::Message.new(text: "TIL 2", author: author2, permalink: "http://permalink-2.com")
]
seconds_of_sleep = 1
seconds_of_sleep = 0.5
blogpost = GoldMiner::BlogPost.new(
slack_channel: "design",
messages: messages,
Expand All @@ -92,7 +92,7 @@ def summarize(message)
result = blogpost.to_s
elapsed_time = Process.clock_gettime(Process::CLOCK_MONOTONIC) - t0

overhead = 0.5
overhead = 0.1
expect(elapsed_time).to be_between(seconds_of_sleep, seconds_of_sleep + overhead)
expect(result).to eq <<~MARKDOWN
---
Expand Down

0 comments on commit 210288c

Please sign in to comment.