aboutsummaryrefslogtreecommitdiff
path: root/spec/setup/start_app_server.cr
diff options
context:
space:
mode:
Diffstat (limited to 'spec/setup/start_app_server.cr')
-rw-r--r--spec/setup/start_app_server.cr10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/setup/start_app_server.cr b/spec/setup/start_app_server.cr
new file mode 100644
index 0000000..ff0bfee
--- /dev/null
+++ b/spec/setup/start_app_server.cr
@@ -0,0 +1,10 @@
+app_server = AppServer.new
+
+spawn do
+ app_server.listen
+end
+
+Spec.after_suite do
+ LuckyFlow.shutdown
+ app_server.close
+end