mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 14:26:26 +00:00
Wrap all suite in a proc to avoid polluting globals
This commit is contained in:
parent
926d1c546e
commit
e9ff9617df
@ -73,8 +73,11 @@ proc summarizeLongTests*(name: string) =
|
||||
template suiteReport*(name, body) =
|
||||
last = name
|
||||
status[last] = initOrderedTable[string, Status]()
|
||||
block: # namespacing
|
||||
proc runSuite() =
|
||||
suite name:
|
||||
body
|
||||
runSuite()
|
||||
|
||||
template timedTest*(name, body) =
|
||||
var f: float
|
||||
|
Loading…
x
Reference in New Issue
Block a user