Skip to content

Commit

Permalink
get tests running again
Browse files Browse the repository at this point in the history
  • Loading branch information
philosodad committed May 15, 2016
1 parent fc64b01 commit af385f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/loggex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ defmodule Loggex do
plug :match
plug :dispatch

def start _type, _args do
def start( _type, _args ), do: start

def start do
Cowboy.http Loggex, [], port: 6438
Repo.start_link
end
Expand Down
2 changes: 1 addition & 1 deletion test/loggex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule LoggexTest do

setup do
:random.seed(:erlang.now)
{:ok, _repo} = Loggex.start
Loggex.start
Ecto.Adapters.SQL.restart_test_transaction(Loggex.Repo)
on_exit fn ->
Loggex.stop
Expand Down

0 comments on commit af385f0

Please sign in to comment.