diskfloppy.me/spec/setup/start_app_server.cr

11 lines
126 B
Crystal

app_server = AppServer.new
spawn do
app_server.listen
end
Spec.after_suite do
LuckyFlow.shutdown
app_server.close
end