debug(ci): add lock/lsm test to isolate failure

This commit is contained in:
2026-05-13 13:22:06 +03:00
parent adf5937198
commit ab2522657f
2 changed files with 20 additions and 0 deletions
+3
View File
@@ -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
+17
View File
@@ -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