elixir-omg icon indicating copy to clipboard operation
elixir-omg copied to clipboard

Watcher_Info itest client `get_balance` varrying response

Open pnowosie opened this issue 4 years ago • 2 comments

Experienced in Cabbage tests (fee_claiming) Client get_balance response is either map or list(map).

Balance response for Alice: %{
  "amount" => 3000000000000000000,
  "currency" => "0x0000000000000000000000000000000000000000"
}

11:54:04.164 [info]  		Then "Alice" should have "3" ETH on the child chain

11:54:04.188 [info]  		When "Alice" sends "Bob" "2" ETH on the child chain
Balance response for Bob: %{
  "amount" => 2000000000000000000,
  "currency" => "0x0000000000000000000000000000000000000000"
}

11:54:12.229 [info]  		Then "Bob" should have "2" ETH on the child chain
Balance response for FeeClaimer: [
  %{
    "amount" => 10000000000000000000,
    "currency" => "0x0000000000000000000000000000000000000000"
  }
]

pnowosie avatar Feb 04 '20 11:02 pnowosie

hm... is the issue on the cabbage tests or watcher info response? it would be good to include how to reproduce this.

InoMurko avatar Feb 04 '20 14:02 InoMurko

This is cabbage test client - Watcher responds with array tirelessly. To reproduce see the usage of Client.get_balance(...) in <elixir-omg>/priv/apps/itest/test/itest/fee_claiming_test.exs

pnowosie avatar Feb 10 '20 06:02 pnowosie