Don't start streamer during tests.
authorRoger Braun <roger@rogerbraun.net>
Sat, 18 Nov 2017 11:22:07 +0000 (12:22 +0100)
committerRoger Braun <roger@rogerbraun.net>
Sat, 18 Nov 2017 11:22:07 +0000 (12:22 +0100)
lib/pleroma/application.ex

index 5422cbc28c0ca16cfc81cd0c848693cc524888b9..bfe16e13ae0f0ae74275cc3026fe96bc7199573e 100644 (file)
@@ -20,8 +20,8 @@ defmodule Pleroma.Application do
                          limit: 2500
                        ]]),
       worker(Pleroma.Web.Federator, []),
-      worker(Pleroma.Web.Streamer, [])
     ]
+    ++ if Mix.env == :test, do: [], else: [worker(Pleroma.Web.Streamer, [])]
 
     # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
     # for other strategies and supported options