Skip to content

Commit

Permalink
fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Sep 8, 2024
1 parent e986c70 commit 78afa54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ server = HTTP::Server.new([HTTP::BasicAuthHandler.new("username", "password")])
when /^\/delay\/(\d+)$/
seconds = $1.to_i

sleep seconds
sleep seconds.seconds

context.response.print "Delay #{seconds} seconds"
when /^\/stream\/(\d+)$/
Expand Down

0 comments on commit 78afa54

Please sign in to comment.