2 Commits

Author SHA1 Message Date
  Piotr Orzechowski 1cc265f1e3 Use routing facility 3 months ago
  Piotr Orzechowski f1d1d9a3d5 Use routing facility 3 months ago
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      apps/kv_server/test/kv_server/command_test.exs

+ 4
- 1
apps/kv_server/test/kv_server/command_test.exs View File

@@ -2,8 +2,11 @@ defmodule KVServer.CommandTest do
2 2
   use ExUnit.Case, async: true
3 3
   doctest KVServer.Command
4 4
 
5
-  setup context do
5
+  setup do
6 6
     :ok = Application.put_env(:kv, :routing_table, [{?a..?z, node()}])
7
+  end
8
+
9
+  setup context do
7 10
     _ = start_supervised!({KV.Registry, name: context.test})
8 11
     %{registry: context.test}
9 12
   end

Loading…
Cancel
Save