Fix for stream ref test fail #29843 (#29845)

This commit is contained in:
Johan Andrén 2020-11-30 11:42:03 +01:00 committed by GitHub
parent e290130386
commit 78ffa91c4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -419,7 +419,9 @@ class StreamRefsSpec extends AkkaSpec(StreamRefsSpec.config()) {
// "concurrently"
ks.shutdown()
remoteControl.success(None)
// note that while unlikely the killswitch shutdown can already have reached the source.maybe and in that case the
// remoteControl is already completed here
remoteControl.trySuccess(None)
// since it is a race we can only confirm that it either completes or fails both sides
// if it didn't work