File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/src/test/java/io/scalecube/services Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22
33import static org .junit .jupiter .api .Assertions .assertEquals ;
44
5+ import io .rsocket .exceptions .RejectedSetupException ;
56import io .scalecube .services .auth .Authenticator ;
67import io .scalecube .services .auth .PrincipalMapper ;
78import io .scalecube .services .discovery .ScalecubeServiceDiscovery ;
@@ -208,8 +209,7 @@ void failedAuthenticationWithInvalidCredentials() {
208209
209210 Consumer <Throwable > verifyError =
210211 th -> {
211- // TODO Artem V: find a way to map rsocket exception to scalecube exception
212- // assertEquals(UnauthorizedException.class, th.getClass());
212+ assertEquals (RejectedSetupException .class , th .getClass ());
213213 assertEquals ("Authentication failed (username or password incorrect)" , th .getMessage ());
214214 };
215215
You can’t perform that action at this time.
0 commit comments