aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/memstore_test.go
diff options
context:
space:
mode:
authorFerenc Szabo <frncmx@gmail.com>2019-02-09 00:07:11 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2019-02-09 00:07:11 +0800
commit27e3f968194e2723279b60f71c79d4da9fc7577f (patch)
treea5419a987eff3e7955985906b276607b7307f02e /swarm/storage/memstore_test.go
parentcde02e017ef2fb254f9b91888f4a14645c24890a (diff)
downloadgo-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.tar
go-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.tar.gz
go-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.tar.bz2
go-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.tar.lz
go-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.tar.xz
go-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.tar.zst
go-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.zip
swarm: CI race detector test adjustments (#19017)
Diffstat (limited to 'swarm/storage/memstore_test.go')
-rw-r--r--swarm/storage/memstore_test.go40
1 files changed, 16 insertions, 24 deletions
diff --git a/swarm/storage/memstore_test.go b/swarm/storage/memstore_test.go
index 6850d2d69..8aaf486a7 100644
--- a/swarm/storage/memstore_test.go
+++ b/swarm/storage/memstore_test.go
@@ -28,32 +28,32 @@ func newTestMemStore() *MemStore {
return NewMemStore(storeparams, nil)
}
-func testMemStoreRandom(n int, chunksize int64, t *testing.T) {
+func testMemStoreRandom(n int, t *testing.T) {
m := newTestMemStore()
defer m.Close()
- testStoreRandom(m, n, chunksize, t)
+ testStoreRandom(m, n, t)
}
-func testMemStoreCorrect(n int, chunksize int64, t *testing.T) {
+func testMemStoreCorrect(n int, t *testing.T) {
m := newTestMemStore()
defer m.Close()
- testStoreCorrect(m, n, chunksize, t)
+ testStoreCorrect(m, n, t)
}
func TestMemStoreRandom_1(t *testing.T) {
- testMemStoreRandom(1, 0, t)
+ testMemStoreRandom(1, t)
}
func TestMemStoreCorrect_1(t *testing.T) {
- testMemStoreCorrect(1, 4104, t)
+ testMemStoreCorrect(1, t)
}
func TestMemStoreRandom_1k(t *testing.T) {
- testMemStoreRandom(1000, 0, t)
+ testMemStoreRandom(1000, t)
}
func TestMemStoreCorrect_1k(t *testing.T) {
- testMemStoreCorrect(100, 4096, t)
+ testMemStoreCorrect(100, t)
}
func TestMemStoreNotFound(t *testing.T) {
@@ -66,32 +66,24 @@ func TestMemStoreNotFound(t *testing.T) {
}
}
-func benchmarkMemStorePut(n int, processors int, chunksize int64, b *testing.B) {
+func benchmarkMemStorePut(n int, b *testing.B) {
m := newTestMemStore()
defer m.Close()
- benchmarkStorePut(m, n, chunksize, b)
+ benchmarkStorePut(m, n, b)
}
-func benchmarkMemStoreGet(n int, processors int, chunksize int64, b *testing.B) {
+func benchmarkMemStoreGet(n int, b *testing.B) {
m := newTestMemStore()
defer m.Close()
- benchmarkStoreGet(m, n, chunksize, b)
+ benchmarkStoreGet(m, n, b)
}
-func BenchmarkMemStorePut_1_500(b *testing.B) {
- benchmarkMemStorePut(500, 1, 4096, b)
+func BenchmarkMemStorePut_500(b *testing.B) {
+ benchmarkMemStorePut(500, b)
}
-func BenchmarkMemStorePut_8_500(b *testing.B) {
- benchmarkMemStorePut(500, 8, 4096, b)
-}
-
-func BenchmarkMemStoreGet_1_500(b *testing.B) {
- benchmarkMemStoreGet(500, 1, 4096, b)
-}
-
-func BenchmarkMemStoreGet_8_500(b *testing.B) {
- benchmarkMemStoreGet(500, 8, 4096, b)
+func BenchmarkMemStoreGet_500(b *testing.B) {
+ benchmarkMemStoreGet(500, b)
}
func TestMemStoreAndLDBStore(t *testing.T) {