File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
rsocket-core/src/test/java/io/rsocket Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 18
18
import java .time .Duration ;
19
19
import java .util .ArrayList ;
20
20
import java .util .List ;
21
- import org .junit .Ignore ;
22
21
import org .junit .jupiter .api .Test ;
23
22
import reactor .core .publisher .Mono ;
24
23
import reactor .core .publisher .UnicastProcessor ;
25
24
import reactor .test .StepVerifier ;
26
25
27
- @ Ignore
26
+ // @Ignore
28
27
public class SetupRejectionTest {
29
28
30
29
@ Test
@@ -64,15 +63,16 @@ void requesterStreamsTerminatedOnZeroErrorFrame() {
64
63
65
64
String errorMsg = "error" ;
66
65
67
- Mono .delay (Duration .ofMillis (100 ))
68
- .doOnTerminate (
69
- () ->
70
- conn .addToReceivedBuffer (
71
- ErrorFrameFlyweight .encode (
72
- ByteBufAllocator .DEFAULT , 0 , new RejectedSetupException (errorMsg ))))
73
- .subscribe ();
74
-
75
- StepVerifier .create (rSocket .requestResponse (DefaultPayload .create ("test" )))
66
+ StepVerifier .create (
67
+ rSocket
68
+ .requestResponse (DefaultPayload .create ("test" ))
69
+ .doOnRequest (
70
+ ignored ->
71
+ conn .addToReceivedBuffer (
72
+ ErrorFrameFlyweight .encode (
73
+ ByteBufAllocator .DEFAULT ,
74
+ 0 ,
75
+ new RejectedSetupException (errorMsg )))))
76
76
.expectErrorMatches (
77
77
err -> err instanceof RejectedSetupException && errorMsg .equals (err .getMessage ()))
78
78
.verify (Duration .ofSeconds (5 ));
You can’t perform that action at this time.
0 commit comments