Skip to content

Commit 81caedb

Browse files
committed
Fixed minor issue in test
1 parent aebfe21 commit 81caedb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/src/test/java/io/scalecube/services/ServiceAuthRemoteTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
44

5+
import io.rsocket.exceptions.RejectedSetupException;
56
import io.scalecube.services.auth.Authenticator;
67
import io.scalecube.services.auth.PrincipalMapper;
78
import 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

0 commit comments

Comments
 (0)