mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 06:03:06 +00:00
add second mem only tests
This commit is contained in:
parent
18e83ca662
commit
c36de9f5fc
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@ -134,3 +134,9 @@ jobs:
|
||||
nim --version
|
||||
echo
|
||||
nimble --verbose test
|
||||
|
||||
- name: Run memory tests
|
||||
if: success() || failure()
|
||||
run: |
|
||||
source "${HOME}/.bash_env"
|
||||
nim c -r tests/datastore/testthreadproxyds2.nim
|
||||
|
||||
@ -16,6 +16,7 @@ import pkg/chronicles
|
||||
|
||||
import pkg/datastore/sql
|
||||
import pkg/datastore/fsds
|
||||
import pkg/datastore/memoryds
|
||||
import pkg/datastore/threads/threadproxyds {.all.}
|
||||
|
||||
import ./dscommontests
|
||||
@ -23,7 +24,7 @@ import ./querycommontests
|
||||
|
||||
const NumThreads = 200 # IO threads aren't attached to CPU count
|
||||
|
||||
proc testBasic() =
|
||||
proc testBasicSqllite() =
|
||||
|
||||
suite "Test Basic ThreadDatastore with SQLite":
|
||||
|
||||
@ -48,10 +49,10 @@ proc testBasic() =
|
||||
GC_fullCollect()
|
||||
|
||||
for i in 1..100:
|
||||
testBasic()
|
||||
testBasicSqllite()
|
||||
GC_fullCollect()
|
||||
|
||||
proc testQuery() =
|
||||
proc testQuerySqllite() =
|
||||
suite "Test Query ThreadDatastore with SQLite":
|
||||
|
||||
var
|
||||
@ -74,9 +75,9 @@ proc testQuery() =
|
||||
queryTests(ds, true)
|
||||
GC_fullCollect()
|
||||
|
||||
for i in 1..100:
|
||||
testQuery()
|
||||
GC_fullCollect()
|
||||
# for i in 1..100:
|
||||
# testQuerySqllite()
|
||||
# GC_fullCollect()
|
||||
|
||||
proc testFsDs() =
|
||||
suite "Test Basic ThreadDatastore with fsds":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user