neo-go/cli
Anna Shaleva 685d095fa4 cli: fix race in TestNEP17Balance
`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>
2024-03-01 19:19:02 +03:00
..
app internal: avoid race access to config.Version by tests 2023-10-10 11:59:53 +03:00
cmdargs *: drop legacy addresses from examples 2023-05-31 18:32:02 +03:00
flags [#2442] English Check 2022-05-04 19:48:27 +03:00
input *: bump minimum supported go version 2022-08-08 13:59:32 +03:00
nep_test cli: fix race in TestNEP17Balance 2024-03-01 19:19:02 +03:00
options cli: add await flag for operations with transactions 2023-12-29 15:14:16 +03:00
paramcontext context: define a constant for transaction context type 2022-09-08 14:33:04 +03:00
query cli: use fmt.Append* where possibble 2023-10-12 18:07:54 +03:00
server network: change server Start() behavior 2024-02-27 15:10:51 +03:00
smartcontract smartcontract: fix go version mismatch in TestContractInitAndCompile 2024-02-19 19:08:36 +03:00
testdata cli: add new testing wallet 2024-02-29 23:48:10 +03:00
txctx cli: add await flag for operations with transactions 2023-12-29 15:14:16 +03:00
util cli: add await flag for operations with transactions 2023-12-29 15:14:16 +03:00
vm cli: fix exit in vm test 2024-02-21 13:22:38 +03:00
wallet wallet: make --wif optional in import-multisig command 2024-01-26 18:36:29 +03:00
.gitignore Better error messages (#24) 2018-02-24 10:10:45 +01:00
main.go cli: move tests to subpackages 2022-10-06 09:21:26 +03:00