mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +00:00
685d095fa4
`wallet1_solo.json` can't be used in this test because it contains committee member that receives reward for accepted blocks. The race in this test happens due to the fact that it uses running blockchain and checks expected GAS balance via call to blockchain's GetUtilityTokenBalance API. This call is racy with the CLI command executed prior to the call which causes the following test failure: ``` 2023-04-06T08:44:08.6038406Z === NAME TestNEP17Balance/all_accounts 2023-04-06T08:44:08.6038738Z executor.go:240: 2023-04-06T08:44:08.6039454Z Error Trace: /opt/github-runner/_work/neo-go/neo-go/cli/nep_test/executor.go:240 2023-04-06T08:44:08.6040628Z /opt/github-runner/_work/neo-go/neo-go/cli/nep_test/executor.go:236 2023-04-06T08:44:08.6041787Z /opt/github-runner/_work/neo-go/neo-go/cli/nep_test/nep17_test.go:73 2023-04-06T08:44:08.6042389Z Error: Expect " Amount : 1" to match "^\s*Amount\s*:\s*1.5$" 2023-04-06T08:44:08.6042865Z Test: TestNEP17Balance/all_accounts ``` The fix is do not use committee accounts for balance checks. Let's use side accounts and transfer funds to some of them before the test start. Close #2960. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru> |
||
---|---|---|
.. | ||
nep11_test.go | ||
nep17_test.go |