op-geth/swarm/api/http
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
..
middleware.go swarm/docker: Dockerfile for swarm:edge docker image (#18386) 2019-01-03 15:32:58 +01:00
response.go swarm/api: unexport Respond methods (#18037) 2018-11-06 12:34:34 +01:00
response_test.go cmd/swarm, swarm/api/http, swarm/bmt, swarm/fuse, swarm/network/stream, swarm/storage, swarm/storage/encryption, swarm/testutil: use pseudo-random instead of crypto-random for test files content generation (#18083) 2018-11-14 09:21:14 +01:00
roundtripper.go swarm: network rewrite merge 2018-06-21 21:10:31 +02:00
roundtripper_test.go swarm/api: refactor and improve HTTP API (#3773) 2017-04-07 00:22:22 +02:00
sctx.go swarm: modify context key (#17925) 2018-11-06 09:54:19 +01:00
server.go swarm, cmd/swarm: address ineffectual assignments (#18048) 2018-11-07 20:39:08 +01:00
server_test.go Remove multihash from Swarm bzz:// for Feeds (#18175) 2018-11-26 16:10:22 +01:00
templates.go swarm/api/http: fixed list leaf links (#17342) 2018-08-08 09:33:06 +02:00
test_server.go cmd/swarm: fix resource leaks in tests (#19443) 2019-04-11 12:44:15 +02:00