From 3cc21b3a59279cc01b971b12e6258c5e0dcaa56c Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Wed, 27 Sep 2023 13:30:14 -0700 Subject: [PATCH] add nextSignal using mutex --- tests/datastore/testthreadproxyds.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/datastore/testthreadproxyds.nim b/tests/datastore/testthreadproxyds.nim index 57fea88..c5b6ab0 100644 --- a/tests/datastore/testthreadproxyds.nim +++ b/tests/datastore/testthreadproxyds.nim @@ -24,7 +24,7 @@ import ./querycommontests const NumThreads = 20 # IO threads aren't attached to CPU count - ThreadTestLoops {.intdefine.} = 100 + ThreadTestLoops {.intdefine.} = 1000 N = ThreadTestLoops for i in 1..N: @@ -60,9 +60,6 @@ for i in 1..N: sqlStore = newSQLiteBackend[KeyId, DataBuffer](Memory).tryGet() taskPool = Taskpool.new(NumThreads) ds = ThreadDatastore.new(sqlStore, tp = taskPool).tryGet() - key = Key.init("/a/b").tryGet() - bytes = "some bytes".toBytes - otherBytes = "some other bytes".toBytes setup: sqlStore = newSQLiteBackend[KeyId, DataBuffer](Memory).tryGet()