Skip to content

Commit

Permalink
#328 Improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoraka committed Jul 9, 2019
1 parent eec9416 commit 044f03b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@ class DefaultSimpleBrokerSpec extends Specification implements ReplicationHelper
expect:
broker.send("queue", createDiscoverRequest("node ID"))
}

def "register and send message"() {
setup:
broker.addMessageListener({ msg -> println msg }, "test")
expect:
broker.send("test", createDiscoverRequest("node ID"))
}
}

0 comments on commit 044f03b

Please sign in to comment.