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