Skip to content

Commit

Permalink
Fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel committed Aug 5, 2022
1 parent 53845dd commit 5414915
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 0 additions & 6 deletions lib/archethic/account/mem_tables/token_ledger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ defmodule Archethic.Account.MemTables.TokenLedger do
Initialize the Token ledger tables:
- Main Token ledger as ETS set ({token, to, from, token_id}, amount, spent?)
- Token Unspent Output Index as ETS bag (to, {from, token, token_id})
## Examples
iex> {:ok, _} = TokenLedger.start_link()
iex> { :ets.info(:archethic_token_ledger)[:type], :ets.info(:archethic_token_unspent_output_index)[:type] }
{ :set, :bag }
"""
def start_link(args \\ []) do
GenServer.start_link(__MODULE__, args)
Expand Down
5 changes: 0 additions & 5 deletions lib/archethic/account/mem_tables/uco_ledger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ defmodule Archethic.Account.MemTables.UCOLedger do
- Main UCO ledger as ETS set ({to, from}, amount, spent?)
- UCO Unspent Output Index as ETS bag (to, from)
## Examples
iex> {:ok, _} = UCOLedger.start_link()
iex> { :ets.info(:archethic_uco_ledger)[:type], :ets.info(:archethic_uco_unspent_output_index)[:type] }
{ :set, :bag }
"""
def start_link(args \\ []) do
GenServer.start_link(__MODULE__, args)
Expand Down
5 changes: 4 additions & 1 deletion test/archethic/beacon_chain/subset_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ defmodule Archethic.BeaconChain.SubsetTest do
)

MockClient
|> expect(:send_message, fn
|> stub(:send_message, fn
_, %BeaconUpdate{transaction_attestations: transaction_attestations}, _ ->
send(me, {:transaction_attestations, transaction_attestations})
{:ok, %Ok{}}
Expand All @@ -425,6 +425,9 @@ defmodule Archethic.BeaconChain.SubsetTest do

_, %NewBeaconTransaction{}, _ ->
{:ok, %Ok{}}

_, %Ping{}, _ ->
{:ok, %Ok{}}
end)

Subset.subscribe_for_beacon_updates(subset, first_public_key)
Expand Down

0 comments on commit 5414915

Please sign in to comment.