From 6112de746d7ee5ac572f4f407af519506d7012e2 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 19 May 2020 18:33:18 -0600 Subject: [PATCH] remove unneeded changes --- tests/pubsub/testgossipsub.nim | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tests/pubsub/testgossipsub.nim b/tests/pubsub/testgossipsub.nim index 38fc9be..57c4144 100644 --- a/tests/pubsub/testgossipsub.nim +++ b/tests/pubsub/testgossipsub.nim @@ -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)