Skip to content

Commit

Permalink
Remove unneccessary sleep
Browse files Browse the repository at this point in the history
The test still passes even with long sleeps inside the threads before
`server.start`. I'm guessing the servers bind to the port on
initialization and then start handling requests once started.
  • Loading branch information
MarkyMarkMcDonald committed Apr 5, 2018
1 parent c7ec8e0 commit 697c413
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/links_on_a_page_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def test_it_does_something_useful
Thread.new do
@server.start
end
sleep 1

quarantine_entrance = "http://localhost:#{@server.config[:Port]}"
config = DocDoc::Configuration::Options.new(quarantine_entrance, nil)
Expand Down

0 comments on commit 697c413

Please sign in to comment.