diff --git a/tests/codex/merkletree/helpers.nim b/tests/codex/merkletree/helpers.nim index 5816a12a..848b8469 100644 --- a/tests/codex/merkletree/helpers.nim +++ b/tests/codex/merkletree/helpers.nim @@ -5,7 +5,7 @@ import ../helpers export merkletree, helpers -converter toBool*(x: CtBool): bool = +converter toBool*(x: CTBool): bool = bool(x) proc `==`*(a, b: Poseidon2Tree): bool = diff --git a/tests/codex/node/helpers.nim b/tests/codex/node/helpers.nim index 2b73649a..8ca067f9 100644 --- a/tests/codex/node/helpers.nim +++ b/tests/codex/node/helpers.nim @@ -71,8 +71,8 @@ template setupAndTearDown*() {.dirty.} = network: BlockExcNetwork clock: Clock localStore: RepoStore - localStoreRepoDs: DataStore - localStoreMetaDs: DataStore + localStoreRepoDs: Datastore + localStoreMetaDs: Datastore engine: BlockExcEngine store: NetworkStore node: CodexNodeRef diff --git a/tests/helpers/templeveldb.nim b/tests/helpers/templeveldb.nim index 97b40553..05433691 100644 --- a/tests/helpers/templeveldb.nim +++ b/tests/helpers/templeveldb.nim @@ -14,9 +14,9 @@ var number = 0 proc newDb*(self: TempLevelDb): Datastore = if self.currentPath.len > 0: raiseAssert("TempLevelDb already active.") - self.currentPath = getTempDir() / "templeveldb" / $number / $getmonotime() + self.currentPath = getTempDir() / "templeveldb" / $number / $getMonoTime() inc number - createdir(self.currentPath) + createDir(self.currentPath) self.ds = LevelDbDatastore.new(self.currentPath).tryGet() return self.ds @@ -26,5 +26,5 @@ proc destroyDb*(self: TempLevelDb): Future[void] {.async.} = try: (await self.ds.close()).tryGet() finally: - removedir(self.currentPath) + removeDir(self.currentPath) self.currentPath = ""