=str #16982 Fix supervision bug when more than one resume/restart

This commit is contained in:
Patrik Nordwall 2015-03-05 14:45:34 +01:00
parent e3e01d2c9b
commit 75087a19f2
3 changed files with 25 additions and 4 deletions

View file

@ -128,6 +128,17 @@ class InterpreterSupervisionSpec extends InterpreterSpecKit {
lastEvents() should be(Set(RequestOne))
upstream.onNext(3)
lastEvents() should be(Set(OnNext(3)))
// try one more time
downstream.requestOne()
lastEvents() should be(Set(RequestOne))
upstream.onNext(0) // boom
lastEvents() should be(Set(RequestOne))
downstream.requestOne()
lastEvents() should be(Set(RequestOne))
upstream.onNext(4)
lastEvents() should be(Set(OnNext(4)))
}
"resume when Map throws in middle of the chain" in new TestSetup(Seq(