fixup databuffer

This commit is contained in:
Jaremy Creechley 2023-09-26 16:13:11 -07:00
parent 555f1fe77a
commit 61e8fd4904
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -48,28 +48,28 @@ suite "Test Basic ThreadDatastore with SQLite":
basicStoreTests(ds, key, bytes, otherBytes)
suite "Test Query ThreadDatastore with SQLite":
# suite "Test Query ThreadDatastore with SQLite":
var
sqlStore: SQLiteBackend[KeyId,DataBuffer]
ds: ThreadDatastore
taskPool: Taskpool
key = Key.init("/a/b").tryGet()
bytes = "some bytes".toBytes
otherBytes = "some other bytes".toBytes
# var
# sqlStore: SQLiteBackend[KeyId,DataBuffer]
# ds: ThreadDatastore
# taskPool: Taskpool
# key = Key.init("/a/b").tryGet()
# bytes = "some bytes".toBytes
# otherBytes = "some other bytes".toBytes
setup:
sqlStore = newSQLiteBackend[KeyId, DataBuffer](Memory).tryGet()
taskPool = Taskpool.new(NumThreads)
ds = ThreadDatastore.new(sqlStore, tp = taskPool).tryGet()
# setup:
# sqlStore = newSQLiteBackend[KeyId, DataBuffer](Memory).tryGet()
# taskPool = Taskpool.new(NumThreads)
# ds = ThreadDatastore.new(sqlStore, tp = taskPool).tryGet()
teardown:
GC_fullCollect()
# teardown:
# GC_fullCollect()
(await ds.close()).tryGet()
taskPool.shutdown()
# (await ds.close()).tryGet()
# taskPool.shutdown()
queryTests(ds, true)
# queryTests(ds, true)
# suite "Test Basic ThreadDatastore with fsds":
# let