mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-03 05:38:30 -06:00
Commit the whole ./lib/ folder which stores the Crystal dependencies. This has a few benefits: - Allows to build the project without a connection to the Internet to retrieve dependencies. - Makes the project resistant against dependency re-tags which might include malicious code.
26 lines
422 B
Crystal
26 lines
422 B
Crystal
require "spec"
|
|
require "lucky_flow"
|
|
require "http"
|
|
require "../src/exception_page"
|
|
require "./support/**"
|
|
|
|
include LuckyFlow::Expectations
|
|
|
|
server = TestServer.new(3002)
|
|
|
|
LuckyFlow.configure do |settings|
|
|
settings.base_uri = "http://localhost:3002"
|
|
settings.stop_retrying_after = 40.milliseconds
|
|
end
|
|
|
|
spawn do
|
|
server.listen
|
|
end
|
|
|
|
at_exit do
|
|
LuckyFlow.shutdown
|
|
server.close
|
|
end
|
|
|
|
Habitat.raise_if_missing_settings!
|