go-pulse/swarm/api
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
..
client cmd/swarm: fix resource leaks in tests (#19443) 2019-04-11 12:44:15 +02:00
http cmd/swarm: fix resource leaks in tests (#19443) 2019-04-11 12:44:15 +02:00
testdata/test0 [ImgBot] optimizes images (#17741) 2018-09-26 10:39:39 +02:00
act.go cmd,swarm: enforce camel case variable names (#19060) 2019-02-24 12:39:23 +01:00
api_test.go cmd/swarm, swarm: cross-platform Content-Type detection (#17782) 2018-10-01 13:39:39 +02:00
api.go cmd,swarm: enforce camel case variable names (#19060) 2019-02-24 12:39:23 +01:00
config_test.go cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter (#19309) 2019-03-22 05:55:47 +01:00
config.go cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter (#19309) 2019-03-22 05:55:47 +01:00
encrypt.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
filesystem_test.go cmd/swarm, swarm: cross-platform Content-Type detection (#17782) 2018-10-01 13:39:39 +02:00
filesystem.go swarm, cmd/swarm: address ineffectual assignments (#18048) 2018-11-07 20:39:08 +01:00
gen_mime.go cmd/swarm, swarm: cross-platform Content-Type detection (#17782) 2018-10-01 13:39:39 +02:00
inspector.go swarm: enable p2p/discovery and disable dynamic dialling (#19189) 2019-03-01 12:20:37 +01:00
manifest_test.go cmd/swarm, swarm: added access control functionality (#17404) 2018-08-15 17:41:52 +02:00
manifest.go swarm, cmd/swarm: address ineffectual assignments (#18048) 2018-11-07 20:39:08 +01:00
storage_test.go
storage.go swarm: remove unused/dead code (#18351) 2018-12-23 17:31:32 +01:00
uri_test.go swarm: remove unused/dead code (#18351) 2018-12-23 17:31:32 +01:00
uri.go swarm/storage/mru: Renamed rest of MRU references 2018-10-03 09:12:06 +02:00