Skip to content

Commit

Permalink
JMS: Accept redelivery of messages in tests (akka#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru authored Mar 15, 2018
1 parent 5d1b8df commit 65c2cff
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ class JmsTxConnectorsSpec extends JmsSpec {

killSwitch2.shutdown()

resultList should contain theSameElementsAs numsIn.map(_.toString)
// messages might get delivered more than once, use set to ignore duplicates
resultList.toSet should contain theSameElementsAs numsIn.map(_.toString)
}

"ensure no message loss when aborting a stream" in withServer() { ctx =>
Expand Down Expand Up @@ -390,7 +391,8 @@ class JmsTxConnectorsSpec extends JmsSpec {

killSwitch2.shutdown()

resultList should contain theSameElementsAs numsIn.map(_.toString)
// messages might get delivered more than once, use set to ignore duplicates
resultList.toSet should contain theSameElementsAs numsIn.map(_.toString)
}
}
}

0 comments on commit 65c2cff

Please sign in to comment.