plugeth/cmd
Ferenc Szabo 26b50e3ebe cmd/swarm: fix resource leaks in tests (#19443)
* swarm/api: fix file descriptor leak in NewTestSwarmServer

Swarm storage (localstore) was not closed. That resulted a
"too many open files" error if `TestClientUploadDownloadRawEncrypted`
was run with `-count 1000`.

* cmd/swarm: speed up StartNewNodes() by parallelization

Reduce cluster startup time from 13s to 7s.

* swarm/api: disable flaky TestClientUploadDownloadRawEncrypted with -race

* swarm/storage: disable flaky TestLDBStoreCollectGarbage (-race)

With race detection turned on the disabled cases often fail with:
"ldbstore_test.go:535: expected surplus chunk 150 to be missing, but got no error"

* cmd/swarm: fix process leak in TestACT and TestSwarmUp

Each test run we start 3 nodes, but we did not terminate them. So
those 3 nodes continued eating up 1.2GB (3.4GB with -race) after test
completion.

6b6c4d1c27 changed how we start clusters
to speed up tests. The changeset merged together test cases
and introduced a global cluster. But "forgot" about termination.

Let's get rid of "global cluster" so we have a clear owner of
termination (some time sacrifice), while leaving subtests to use the
same cluster.
2019-04-11 12:44:15 +02:00
..
abigen Modified Abigen to Support Vyper (#19120) 2019-03-18 13:29:26 +01:00
bootnode cmd/bootnode: print node URL on startup (#18516) 2019-01-25 12:39:52 +01:00
clef cmd/clef: bundle 4byte db into clef, (#19112) 2019-04-11 13:22:48 +03:00
ethkey cmd/ethkey: fix the README to match updated commands (#17332) 2018-09-04 13:45:27 +02:00
evm asm: remove unused parameter for function Lex (#18058) 2019-03-14 10:35:55 +01:00
faucet all: simplify timestamps to uint64 (#19372) 2019-04-02 23:28:48 +03:00
geth eth, les, geth: implement cli-configurable global gas cap for RPC calls (#19401) 2019-04-08 14:49:52 +03:00
p2psim all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
puppeth cmd/puppeth: handle pre-set Petersburg number, save changed fork rules 2019-02-06 14:34:08 +02:00
rlpdump cmd/rlpdump: allow hex input to have leading '0x' 2017-10-27 09:40:52 +01:00
swarm cmd/swarm: fix resource leaks in tests (#19443) 2019-04-11 12:44:15 +02:00
utils eth, les, geth: implement cli-configurable global gas cap for RPC calls (#19401) 2019-04-08 14:49:52 +03:00
wnode all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00