Skip to content

Commit

Permalink
Updating for crystal 0.31.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink committed Sep 25, 2019
1 parent c62be40 commit ae09f26
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ version: 0.5.0
authors:
- Paul Smith <[email protected]>

crystal: 0.30.0
crystal: 0.31.0

license: MIT

dependencies:
selenium:
github: ysbaddaden/selenium-webdriver-crystal
commit: a6d0e63ab7ddc6a20923bf4157bc6247c1fa2acc
version: 0.4.0
habitat:
github: luckyframework/habitat
version: ~> 0.4
4 changes: 2 additions & 2 deletions spec/lucky_flow_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe LuckyFlow do
it "can open screenshots" do
flow = LuckyFlow.new
fake_process = FakeProcess
time = Time.now
time = Time.utc

flow.open_screenshot(fake_process, time)

Expand All @@ -142,7 +142,7 @@ describe LuckyFlow do
it "can open fullsize screenshots" do
flow = LuckyFlow.new
fake_process = FakeProcess
time = Time.now
time = Time.utc

flow.open_screenshot(fake_process, time, fullsize: true)

Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ end

at_exit do
LuckyFlow.shutdown
server.close
end

def visit_page_with(html) : LuckyFlow
Expand Down
2 changes: 1 addition & 1 deletion src/lucky_flow/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LuckyFlow::Server
end

private def retry_start_session(e)
if Time.now <= @retry_limit.not_nil!
if Time.utc <= @retry_limit.not_nil!
sleep(0.1)
start_session
else
Expand Down

0 comments on commit ae09f26

Please sign in to comment.