From 8ae4083e10058681e511231b2473f2c0e2a3a131 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 14 Aug 2019 11:02:08 +0300 Subject: [PATCH] fix tests --- apps/block_scout_web/config/config.exs | 2 +- apps/block_scout_web/lib/block_scout_web/application.ex | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/block_scout_web/config/config.exs b/apps/block_scout_web/config/config.exs index 38f506e854..0126a7d410 100644 --- a/apps/block_scout_web/config/config.exs +++ b/apps/block_scout_web/config/config.exs @@ -42,7 +42,7 @@ config :block_scout_web, BlockScoutWeb.Endpoint, path: System.get_env("NETWORK_PATH") || "/" ], render_errors: [view: BlockScoutWeb.ErrorView, accepts: ~w(html json)], - pubsub: [name: BlockScoutWeb.PubSub, adapter: Phoenix.PubSub.PG2] + pubsub: [name: BlockScoutWeb.PubSub] config :block_scout_web, BlockScoutWeb.Tracer, service: :block_scout_web, diff --git a/apps/block_scout_web/lib/block_scout_web/application.ex b/apps/block_scout_web/lib/block_scout_web/application.ex index a9c5021846..61cb9efb3f 100644 --- a/apps/block_scout_web/lib/block_scout_web/application.ex +++ b/apps/block_scout_web/lib/block_scout_web/application.ex @@ -18,6 +18,7 @@ defmodule BlockScoutWeb.Application do # Define workers and child supervisors to be supervised children = [ # Start the endpoint when the application starts + {Phoenix.PubSub.PG2, name: BlockScoutWeb.PubSub, fastlane: Phoenix.Channel.Server}, supervisor(Endpoint, []), supervisor(Absinthe.Subscription, [Endpoint]), {RealtimeEventHandler, name: RealtimeEventHandler},