Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
use Mix.Config
import Config

import_config "#{Mix.env()}.exs"
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use Mix.Config
import Config
2 changes: 1 addition & 1 deletion config/prod.exs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use Mix.Config
import Config
2 changes: 1 addition & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Mix.Config
import Config

config :spear, Spear.Test.ClientFixture, connection_string: "esdb://localhost:2113"

Expand Down
2 changes: 1 addition & 1 deletion test/spear/connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Spear.ConnectionTest do

import ExUnit.CaptureLog

@good_config Application.fetch_env!(:spear, :config)
@good_config Application.compile_env!(:spear, :config)

describe "given a connection_string leading nowhere" do
setup do
Expand Down
2 changes: 1 addition & 1 deletion test/spear_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule SpearTest do
@max_append_bytes 1_048_576
@checkpoint_after 32 * 32 * 32

@config Application.fetch_env!(:spear, :config)
@config Application.compile_env!(:spear, :config)

setup do
conn = start_supervised!({Spear.Connection, @config})
Expand Down