Skip to content

Commit

Permalink
Run refs_test syncronously. refs/local gives no refs back
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Jul 11, 2023
1 parent 0a3f5e7 commit b1b1a82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/ex_ipfs/refs_test.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule ExIpfs.RefsTest do
@moduledoc false
use ExUnit.Case, async: true
use ExUnit.Case, async: false

alias ExIpfs.RefsRef, as: Ref
alias ExIpfs.Refs
Expand Down Expand Up @@ -35,8 +35,7 @@ defmodule ExIpfs.RefsTest do
end

test "local/0" do
assert {:ok, _} = Refs.local()
{:ok, refs} = Refs.local()
assert {:ok, refs} = Refs.local()
assert Enum.all?(refs, fn ref -> is_map(ref) end)
assert %Ref{} = Enum.at(refs, 0)
end
Expand Down

0 comments on commit b1b1a82

Please sign in to comment.