diff --git a/tests/datastore/testmemoryds.nim b/tests/datastore/testmemoryds.nim index fedb497..bcee3f6 100644 --- a/tests/datastore/testmemoryds.nim +++ b/tests/datastore/testmemoryds.nim @@ -27,42 +27,11 @@ suite "Test Basic MemoryDatastore": basicStoreTests(memStore, key, bytes, otherBytes) -suite "Test Misc MemoryDatastore": - let - path = currentSourcePath() # get this file's name - basePath = "tests_data" - basePathAbs = path.parentDir / basePath - bytes = "some bytes".toBytes - - setup: - removeDir(basePathAbs) - require(not dirExists(basePathAbs)) - createDir(basePathAbs) - - teardown: - removeDir(basePathAbs) - require(not dirExists(basePathAbs)) - - suite "Test Query": - let - path = currentSourcePath() # get this file's name - basePath = "tests_data" - basePathAbs = path.parentDir / basePath - var - ds: MemoryDatastore + var ds: MemoryDatastore setup: - removeDir(basePathAbs) - require(not dirExists(basePathAbs)) - createDir(basePathAbs) - ds = MemoryDatastore.new() - teardown: - - removeDir(basePathAbs) - require(not dirExists(basePathAbs)) - queryTests(ds, false)