From cd1778d498fb139b47f3b27bb76f9a1b5cd354e7 Mon Sep 17 00:00:00 2001 From: andri lim Date: Wed, 20 Mar 2019 12:49:47 +0700 Subject: [PATCH] implement post error check in test_vm_json --- tests/test_vm_json.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_vm_json.nim b/tests/test_vm_json.nim index eaa0c0cb6..f8a13f5be 100644 --- a/tests/test_vm_json.nim +++ b/tests/test_vm_json.nim @@ -91,7 +91,7 @@ proc testFixture(fixtures: JsonNode, testStatusIMPL: var TestStatus) = if not fixture{"post"}.isNil: verifyStateDb(fixture{"post"}, computation.vmState.readOnlyStateDB) else: - # Error checks - check(computation.isError) - # TODO postState = fixture{"pre"} - + # Error checks + check(computation.isError) + if not fixture{"pre"}.isNil: + verifyStateDb(fixture{"pre"}, computation.vmState.readOnlyStateDB)