Skip to content

Commit 0de3d1b

Browse files
committed
validate opts in child_spec/1
1 parent 1addd04 commit 0de3d1b

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Diff for: config/config.exs

-4
This file was deleted.

Diff for: lib/arangox.ex

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ defmodule Arangox do
5252
"""
5353
@spec child_spec([start_option()]) :: Supervisor.child_spec()
5454
def child_spec(opts \\ []) do
55+
ensure_valid!(opts)
56+
5557
DBConnection.child_spec(__MODULE__.Connection, opts)
5658
end
5759

Diff for: mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Arangox.MixProject do
22
use Mix.Project
33

4-
@version "0.4.4"
4+
@version "0.4.5"
55
@description """
66
ArangoDB 3.3.9+ driver for Elixir with connection pooling, VelocyStream, \
77
support for Active Failover, transactions and streamed cursors.

Diff for: test/test_helper.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ end
4343

4444
excludes = List.delete([:unix], os_type)
4545

46-
assert_timeout = String.to_integer(System.get_env("ELIXIR_ASSERT_TIMEOUT") || "15_000")
46+
assert_timeout = String.to_integer(System.get_env("ELIXIR_ASSERT_TIMEOUT") || "15000")
4747

4848
ExUnit.start(
4949
exclude: excludes,

0 commit comments

Comments
 (0)