mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-05 23:23:10 +00:00
cleanup
This commit is contained in:
parent
72fc22707e
commit
a13526a886
@ -27,42 +27,11 @@ suite "Test Basic MemoryDatastore":
|
|||||||
|
|
||||||
basicStoreTests(memStore, key, bytes, otherBytes)
|
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":
|
suite "Test Query":
|
||||||
let
|
|
||||||
path = currentSourcePath() # get this file's name
|
|
||||||
basePath = "tests_data"
|
|
||||||
basePathAbs = path.parentDir / basePath
|
|
||||||
|
|
||||||
var
|
var ds: MemoryDatastore
|
||||||
ds: MemoryDatastore
|
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
removeDir(basePathAbs)
|
|
||||||
require(not dirExists(basePathAbs))
|
|
||||||
createDir(basePathAbs)
|
|
||||||
|
|
||||||
ds = MemoryDatastore.new()
|
ds = MemoryDatastore.new()
|
||||||
|
|
||||||
teardown:
|
|
||||||
|
|
||||||
removeDir(basePathAbs)
|
|
||||||
require(not dirExists(basePathAbs))
|
|
||||||
|
|
||||||
queryTests(ds, false)
|
queryTests(ds, false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user