@@ -491,10 +491,6 @@ public Mono<Void> onClose() {
491
491
492
492
onCloseDelayer .tryEmitEmpty ();
493
493
494
- onCloseSubscriber .assertNotTerminated ();
495
-
496
- rule .otherClosedSink .tryEmitEmpty ();
497
-
498
494
onCloseSubscriber .assertTerminated ().assertComplete ();
499
495
500
496
Assertions .assertThat (rule .socket .isDisposed ()).isTrue ();
@@ -516,10 +512,6 @@ public void shouldResolveOnStartSource() {
516
512
517
513
rule .client .onClose ().subscribe (assertSubscriber1 );
518
514
519
- assertSubscriber1 .assertNotTerminated ();
520
-
521
- rule .otherClosedSink .tryEmitEmpty ();
522
-
523
515
assertSubscriber1 .assertTerminated ().assertComplete ();
524
516
525
517
Assertions .assertThat (rule .socket .isDisposed ()).isTrue ();
@@ -579,8 +571,6 @@ public void shouldBeRestartedIfSourceWasClosed() {
579
571
580
572
rule .client .dispose ();
581
573
582
- rule .otherClosedSink .tryEmitEmpty ();
583
-
584
574
terminateSubscriber .assertTerminated ().assertComplete ();
585
575
586
576
Assertions .assertThat (rule .client .connect ()).isFalse ();
@@ -636,8 +626,6 @@ public void shouldStartOriginalSourceOnceIfRacing() {
636
626
637
627
rule .client .dispose ();
638
628
639
- rule .otherClosedSink .tryEmitEmpty ();
640
-
641
629
Assertions .assertThat (rule .client .isDisposed ()).isTrue ();
642
630
Assertions .assertThat (rule .socket .isDisposed ()).isTrue ();
643
631
@@ -656,10 +644,8 @@ public static class ClientSocketRule extends AbstractSocketRule<RSocket> {
656
644
protected Sinks .One <RSocket > producer ;
657
645
658
646
protected Sinks .Empty <Void > onGracefulShutdownStartedSink ;
659
- protected Sinks .Empty <Void > otherGracefulShutdownSink ;
660
647
protected Sinks .Empty <Void > thisGracefulShutdownSink ;
661
648
protected Sinks .Empty <Void > thisClosedSink ;
662
- protected Sinks .Empty <Void > otherClosedSink ;
663
649
664
650
@ Override
665
651
protected void doInit () {
@@ -679,10 +665,8 @@ protected void doInit() {
679
665
@ Override
680
666
protected RSocket newRSocket () {
681
667
this .onGracefulShutdownStartedSink = Sinks .empty ();
682
- this .otherGracefulShutdownSink = Sinks .empty ();
683
668
this .thisGracefulShutdownSink = Sinks .empty ();
684
669
this .thisClosedSink = Sinks .empty ();
685
- this .otherClosedSink = Sinks .empty ();
686
670
return new RSocketRequester (
687
671
connection ,
688
672
PayloadDecoder .ZERO_COPY ,
@@ -698,8 +682,8 @@ protected RSocket newRSocket() {
698
682
onGracefulShutdownStartedSink ,
699
683
thisGracefulShutdownSink ,
700
684
thisClosedSink ,
701
- otherGracefulShutdownSink . asMono (). and ( thisGracefulShutdownSink .asMono () ),
702
- otherClosedSink . asMono (). and ( thisClosedSink .asMono () ));
685
+ thisGracefulShutdownSink .asMono (),
686
+ thisClosedSink .asMono ());
703
687
}
704
688
}
705
689
}
0 commit comments