debug(ci): add lock/lsm test to isolate failure
This commit is contained in:
@@ -27,6 +27,9 @@ jobs:
|
||||
nim --version
|
||||
echo "NIM_OK=1"
|
||||
|
||||
- name: Compile and run lock test
|
||||
run: nim c --threads:on --path:src -r tests/test_lock.nim
|
||||
|
||||
- name: Run join_tests
|
||||
run: timeout 30 nim c -d:ssl --threads:on --path:src -r tests/join_tests.nim
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import std/unittest
|
||||
import std/locks
|
||||
import barabadb/storage/lsm
|
||||
|
||||
suite "Lock test":
|
||||
test "initLock works":
|
||||
var l: Lock
|
||||
initLock(l)
|
||||
acquire(l)
|
||||
release(l)
|
||||
check true
|
||||
|
||||
test "newLSMTree works":
|
||||
var db = newLSMTree("/tmp/test_lock_lsm")
|
||||
check db != nil
|
||||
db.put("key1", @[1'u8, 2'u8])
|
||||
check true
|
||||
Reference in New Issue
Block a user