Re-enable gossipsub internal tests when running CI

minor bonus: add a link in the comments about bearssl issue with
callbacks
This commit is contained in:
Giovanni Petrantoni 2020-04-07 22:07:00 +09:00
parent a576069305
commit 35a48fa560
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
import bearssl
# have to do this due to a nim bug and raises[] on callbacks
# https://github.com/nim-lang/Nim/issues/13905
proc ourPoly1305CtmulRun*(key: pointer; iv: pointer; data: pointer; len: int;
aad: pointer; aadLen: int; tag: pointer; ichacha: pointer;
encrypt: cint) {.cdecl, importc: "br_poly1305_ctmul_run",

View File

@ -445,7 +445,7 @@ method initPubSub(g: GossipSub) =
g.heartbeatLock = newAsyncLock()
## Unit tests
when isMainModule and not defined(release):
when isMainModule:
## Test internal (private) methods for gossip,
## mesh and fanout maintenance.
## Usually I wouldn't test private behaviour,