Skip to content

Commit f51b964

Browse files
committed
correct argtypes for ttl and adjust flaky ttl expiration test
1 parent 1b6874c commit f51b964

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/tidesdb/tidesdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class _CCacheStats(Structure):
311311
c_size_t,
312312
POINTER(c_uint8),
313313
c_size_t,
314-
c_int,
314+
c_long,
315315
]
316316
_lib.tidesdb_txn_put.restype = c_int
317317

tests/test_tidesdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def test_ttl_expiration(self, db, cf):
301301
txn.commit()
302302

303303
cf.flush_memtable()
304-
time.sleep(0.5)
304+
time.sleep(2)
305305

306306
with db.begin_txn() as txn:
307307
try:

0 commit comments

Comments
 (0)