storj/storage/testsuite
paul cannon 94651921c3 storage/testsuite: pass ctx in to bulk setup methods
to make them cancelable. Also,

* rename BulkDelete->BulkDeleteAll

this leaves room for a new method `BulkDelete(items storage.Items)` that
does a bulk deletion of a specified list of items, as opposed to
deleting _everything_. such a method would be used in the
`cleanupItems()` function found in utils.go, because when individual
deletes are fairly slow, that step takes way too long during tests.

* use BulkDelete method if available

nothing currently provides `BulkDelete(items storage.Items) error`,
but we made use of it with the Bigtable testing and code, and may make
use of it again when adding new kv backends.

* and eliminate the global context in test_iterate.go

Change-Id: I171c7a3818beffbad969b131e98b9bbe3f324bf2
2019-12-10 20:22:08 +00:00
..
bench.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
long_bench.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
test_crud.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
test_iterate_all.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
test_iterate.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
test_list.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
test_listv2.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
test_parallel.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
test_prefix.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
test.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00
utils.go storage/testsuite: pass ctx in to bulk setup methods 2019-12-10 20:22:08 +00:00