add second mem only tests

This commit is contained in:
Jaremy Creechley 2023-09-19 15:06:28 -07:00
parent 18e83ca662
commit c36de9f5fc
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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":