remove unneeded changes
This commit is contained in:
parent
9d3cc9647b
commit
6112de746d
|
@ -52,8 +52,7 @@ suite "GossipSub":
|
|||
proc runTests(): Future[bool] {.async.} =
|
||||
var handlerFut = newFuture[bool]()
|
||||
proc handler(topic: string, data: seq[byte]) {.async, gcsafe.} =
|
||||
check:
|
||||
topic == "foobar"
|
||||
check topic == "foobar"
|
||||
handlerFut.complete(true)
|
||||
|
||||
var nodes = generateNodes(2, true)
|
||||
|
@ -72,8 +71,7 @@ suite "GossipSub":
|
|||
proc validator(topic: string,
|
||||
message: Message):
|
||||
Future[bool] {.async.} =
|
||||
check:
|
||||
topic == "foobar"
|
||||
check topic == "foobar"
|
||||
validatorFut.complete(true)
|
||||
result = true
|
||||
|
||||
|
@ -90,8 +88,7 @@ suite "GossipSub":
|
|||
test "GossipSub validation should fail":
|
||||
proc runTests(): Future[bool] {.async.} =
|
||||
proc handler(topic: string, data: seq[byte]) {.async, gcsafe.} =
|
||||
check:
|
||||
false # if we get here, it should fail
|
||||
check false # if we get here, it should fail
|
||||
|
||||
var nodes = generateNodes(2, true)
|
||||
var awaiters: seq[Future[void]]
|
||||
|
@ -125,8 +122,7 @@ suite "GossipSub":
|
|||
proc runTests(): Future[bool] {.async.} =
|
||||
var handlerFut = newFuture[bool]()
|
||||
proc handler(topic: string, data: seq[byte]) {.async, gcsafe.} =
|
||||
check:
|
||||
topic == "foo"
|
||||
check topic == "foo"
|
||||
handlerFut.complete(true)
|
||||
|
||||
var nodes = generateNodes(2, true)
|
||||
|
@ -247,8 +243,7 @@ suite "GossipSub":
|
|||
proc runTests(): Future[bool] {.async.} =
|
||||
var passed = newFuture[void]()
|
||||
proc handler(topic: string, data: seq[byte]) {.async, gcsafe.} =
|
||||
check:
|
||||
topic == "foobar"
|
||||
check topic == "foobar"
|
||||
passed.complete()
|
||||
|
||||
var nodes = generateNodes(2, true)
|
||||
|
@ -296,8 +291,7 @@ suite "GossipSub":
|
|||
proc runTests(): Future[bool] {.async.} =
|
||||
var passed: Future[bool] = newFuture[bool]()
|
||||
proc handler(topic: string, data: seq[byte]) {.async, gcsafe.} =
|
||||
check:
|
||||
topic == "foobar"
|
||||
check topic == "foobar"
|
||||
passed.complete(true)
|
||||
|
||||
var nodes = generateNodes(2, true)
|
||||
|
|
Loading…
Reference in New Issue