commit 7c5ddd44b06e1e15e3f44e83fb34187537c35d7d
parent bf8f2a8d2808c843ae2a0137687f5d7e054d2346
Author: William Casarin <jb55@jb55.com>
Date: Wed, 22 Nov 2023 10:27:09 -0800
test: remove non-deterministic test
Some computers are slow and this fails. Definitely going to need some
type of sync mechanism so we don't have to close and open the database
all the time. "wait for first event" might be interesting once we have
filters.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test.c b/test.c
@@ -492,7 +492,8 @@ static void test_replacement()
read_file("testdata/old-new.json", (unsigned char*)json, alloc_size, &written);
assert(ndb_process_events(ndb, json, written));
- usleep(1000); // 1ms, works at 0.1ms too
+ ndb_destroy(ndb);
+ assert(ndb_init(&ndb, test_dir, mapsize, ingester_threads, 0));
struct ndb_txn txn;
assert(ndb_begin_query(ndb, &txn));