ensure that graph attributes are not lost
- this entails making Module.isSealed==true if attributes are set - also removed Module.nest(), which implied fixing replaceShape to form a CompositeModule where CopiedModule was used before (GraphModule and TlsModule)
This commit is contained in:
parent
4e49d75ad8
commit
7b7647435b
18 changed files with 87 additions and 97 deletions
|
|
@ -8,9 +8,9 @@ import akka.stream.testkit.TestSubscriber.Probe
|
|||
import akka.stream.testkit.Utils._
|
||||
import akka.stream.testkit._
|
||||
import org.reactivestreams.Publisher
|
||||
|
||||
import scala.concurrent.duration._
|
||||
import scala.util.control.NoStackTrace
|
||||
import akka.testkit.EventFilter
|
||||
|
||||
class GraphUnzipWithSpec extends AkkaSpec {
|
||||
|
||||
|
|
@ -174,7 +174,9 @@ class GraphUnzipWithSpec extends AkkaSpec {
|
|||
leftProbe.expectNext(1 / -1)
|
||||
rightProbe.expectNext("1/-1")
|
||||
|
||||
requestFromBoth()
|
||||
EventFilter[ArithmeticException](occurrences = 1).intercept {
|
||||
requestFromBoth()
|
||||
}
|
||||
|
||||
leftProbe.expectError() match {
|
||||
case a: java.lang.ArithmeticException ⇒ a.getMessage should be("/ by zero")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue