From d5b0a6021e4855bec595b613a0937a52cda54397 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 15 Jan 2021 17:57:01 +0300 Subject: Reduce number of concurrent iterations on KV public API to 100 --- plugins/kv/memory/plugin_unit_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/kv/memory') diff --git a/plugins/kv/memory/plugin_unit_test.go b/plugins/kv/memory/plugin_unit_test.go index d3b24860..c7dd882f 100644 --- a/plugins/kv/memory/plugin_unit_test.go +++ b/plugins/kv/memory/plugin_unit_test.go @@ -428,7 +428,7 @@ func TestConcurrentReadWriteTransactions(t *testing.T) { // concurrently set the keys go func(s kv.Storage) { defer wg.Done() - for i := 0; i <= 1000; i++ { + for i := 0; i <= 100; i++ { m.Lock() // set is writable transaction // it should stop readable @@ -448,7 +448,7 @@ func TestConcurrentReadWriteTransactions(t *testing.T) { // should be no errors go func(s kv.Storage) { defer wg.Done() - for i := 0; i <= 1000; i++ { + for i := 0; i <= 100; i++ { m.RLock() v, err = s.Has("key") assert.NoError(t, err) @@ -461,7 +461,7 @@ func TestConcurrentReadWriteTransactions(t *testing.T) { // should be no errors go func(s kv.Storage) { defer wg.Done() - for i := 0; i <= 1000; i++ { + for i := 0; i <= 100; i++ { m.Lock() err = s.Delete("key" + strconv.Itoa(i)) assert.NoError(t, err) -- cgit v1.2.3