Skip to content

Commit

Permalink
Merge branch 'main' into feat/inotify-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
floriank committed Sep 13, 2021
2 parents 486ea03 + 49a6221 commit 37f5d52
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/support/mock_server_case.ex
Expand Up @@ -45,11 +45,10 @@ defmodule Mimicry.MockServerCase do

if file_name do
:ok = clear_servers()
{:ok, server_pid} = add_server(file_name)
{:ok, _server_pid} = add_server(file_name)

on_exit(fn ->
MockServerList.delete_server(server_pid)
end)
# make sure server is cleared afterwards
on_exit(&clear_servers/0)
end

:ok
Expand Down

0 comments on commit 37f5d52

Please sign in to comment.